Skip to content

Commit

Permalink
fix(Outlines): use correct uniform type (#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Jul 23, 2024
1 parent 56d8ecb commit bd8c036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Outlines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const OutlinesMaterial = /* @__PURE__ */ shaderMaterial(
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
uniform float thickness;
uniform float screenspace;
uniform bool screenspace;
uniform vec2 size;
void main() {
#if defined (USE_SKINNING)
Expand All @@ -37,7 +37,7 @@ const OutlinesMaterial = /* @__PURE__ */ shaderMaterial(
tNormal = instanceMatrix * tNormal;
tPosition = instanceMatrix * tPosition;
#endif
if (screenspace == 0.0) {
if (screenspace) {
vec3 newPosition = tPosition.xyz + tNormal.xyz * thickness;
gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);
} else {
Expand Down

0 comments on commit bd8c036

Please sign in to comment.