summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-12 20:49:05 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-12 20:49:05 -0400
commit21ab482f62b6f12469b56e7533a1b41d0ff7a0cd (patch)
treed3650af2b4bbd8840e5a3d20775cbe83417a3bb7
parent4804001bab8c10a1ae11146d3dfc11aa05e03766 (diff)
graphics: model: Remove occlusion factor.
This was silly. It's not even in the spec!
-rw-r--r--chickadee/graphics/model.scm5
-rw-r--r--chickadee/graphics/pbr.scm3
2 files changed, 0 insertions, 8 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index 86f307b..e291f39 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -888,10 +888,6 @@
(let ((v (or (array-ref/optional obj "normalFactor")
#(1.0 1.0 1.0))))
(vec3 (vector-ref v 0) (vector-ref v 1) (vector-ref v 2))))
- (occlusion-factor
- (let ((v (or (array-ref/optional obj "occlusionFactor")
- #(1.0 1.0 1.0))))
- (vec3 (vector-ref v 0) (vector-ref v 1) (vector-ref v 2))))
(emissive-factor
(let ((v (or (array-ref/optional obj "emissiveFactor")
#(1.0 1.0 1.0))))
@@ -940,7 +936,6 @@
#:normal-texture normal-texture
#:normal-texture-enabled (non-null-texture? normal-texture)
#:normal-texcoord normal-texcoord
- #:occlusion-factor occlusion-factor
#:occlusion-texture occlusion-texture
#:occlusion-texture-enabled (non-null-texture? occlusion-texture)
#:occlusion-texcoord occlusion-texcoord
diff --git a/chickadee/graphics/pbr.scm b/chickadee/graphics/pbr.scm
index 441c875..836f8ee 100644
--- a/chickadee/graphics/pbr.scm
+++ b/chickadee/graphics/pbr.scm
@@ -48,7 +48,6 @@
pbr-material-normal-texture
pbr-material-normal-texture-enabled?
pbr-material-normal-texcoord
- pbr-material-occlusion-facgor
pbr-material-occlusion-texture
pbr-material-occlusion-texture-enabled?
pbr-material-occlusion-texcoord
@@ -80,7 +79,6 @@
(local-field normal-texture pbr-material-normal-texture)
(bool normal-texture-enabled pbr-material-normal-texture-enabled)
(int normal-texcoord pbr-material-normal-texcoord)
- (float-vec3 occlusion-factor pbr-material-occlusion-factor)
(local-field occlusion-texture pbr-material-occlusion-texture)
(bool occlusion-texture-enabled pbr-material-occlusion-texture-enabled)
(int occlusion-texcoord pbr-material-occlusion-texcoord)
@@ -107,7 +105,6 @@
#:normal-texture null-texture
#:normal-texture-enabled #f
#:normal-texcoord 0
- #:occlusion-factor #v(1.0 1.0 1.0)
#:occlusion-texture null-texture
#:occlusion-texture-enabled #f
#:occlusion-texcoord 0