mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
ambient & diffuse colours
This commit is contained in:
@ -346,6 +346,8 @@ public class Renderer {
|
||||
var fragUniforms = FragmentShaderUniforms(
|
||||
cameraPosition: camera.position,
|
||||
directionalLight: normalize(.init(0.75, -1, 0.5)),
|
||||
ambientColor: SIMD4(Color(rgba8888: 0x1F1F1F00).linear),
|
||||
diffuseColor: SIMD4(Color(rgba8888: 0xEFEFEF00).linear),
|
||||
specularColor: SIMD4(Color(rgba8888: 0x7F7F7F00).linear),
|
||||
specularIntensity: 50)
|
||||
let instances = instances.map { (instance: Instance) -> VertexShaderInstance in
|
||||
|
Reference in New Issue
Block a user