diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-09-07 17:33:21 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-09-07 17:33:21 -0400 |
commit | 7f32580f3c17824171acab09ff6b4f61ba78c0ec (patch) | |
tree | 23068824bb4fad3e0cf0f68886ff890e7acef4f6 | |
parent | 52ddf812ef59df619a1cc3b3f8c3f0d4a43ef745 (diff) |
render: scene: Make material factors default to 1.0.
-rw-r--r-- | chickadee/render/asset.scm | 6 | ||||
-rw-r--r-- | chickadee/render/scene.scm | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chickadee/render/asset.scm b/chickadee/render/asset.scm index 20034dd..28fee7d 100644 --- a/chickadee/render/asset.scm +++ b/chickadee/render/asset.scm @@ -292,7 +292,7 @@ (vector-ref textures (number-ref obj "index"))))) (normal-factor (let ((v (or (array-ref/optional obj "normalFactor") - #(0.0 0.0 0.0)))) + #(1.0 1.0 1.0)))) (vec3 (vector-ref v 0) (vector-ref v 1) (vector-ref v 2)))) (normal-texture (match (object-ref/optional obj "normalTexture") @@ -300,7 +300,7 @@ (obj (vector-ref textures (number-ref obj "index"))))) (occlusion-factor (let ((v (or (array-ref/optional obj "occlusionFactor") - #(0.0 0.0 0.0)))) + #(1.0 1.0 1.0)))) (vec3 (vector-ref v 0) (vector-ref v 1) (vector-ref v 2)))) (occlusion-texture (match (object-ref/optional obj "occlusionTexture") @@ -308,7 +308,7 @@ (obj (vector-ref textures (number-ref obj "index"))))) (emissive-factor (let ((v (or (array-ref/optional obj "emissiveFactor") - #(0.0 0.0 0.0)))) + #(1.0 1.0 1.0)))) (vec3 (vector-ref v 0) (vector-ref v 1) (vector-ref v 2)))) (emissive-texture (match (object-ref/optional obj "emissiveTexture") diff --git a/chickadee/render/scene.scm b/chickadee/render/scene.scm index db8b2bf..818957e 100644 --- a/chickadee/render/scene.scm +++ b/chickadee/render/scene.scm @@ -107,16 +107,16 @@ (define* (make-material #:key (name "anonymous") - (base-color-factor #v(0.0 0.0 0.0)) + (base-color-factor #v(1.0 1.0 1.0)) (base-color-texture null-texture) (metallic-factor 1.0) (roughness-factor 1.0) (metallic-roughness-texture null-texture) - (normal-factor #v(0.0 0.0 0.0)) + (normal-factor #v(1.0 1.0 1.0)) (normal-texture null-texture) - (occlusion-factor #v(0.0 0.0 0.0)) + (occlusion-factor #v(1.0 1.0 1.0)) (occlusion-texture null-texture) - (emissive-factor #v(0.0 0.0 0.0)) + (emissive-factor #v(1.0 1.0 1.0)) (emissive-texture null-texture) (alpha-mode 'opaque) (alpha-cutoff 0.5) |