Skip to content

Commit bd8c036

Browse files
fix(Outlines): use correct uniform type (#2048)
1 parent 56d8ecb commit bd8c036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/Outlines.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const OutlinesMaterial = /* @__PURE__ */ shaderMaterial(
1717
#include <morphtarget_pars_vertex>
1818
#include <skinning_pars_vertex>
1919
uniform float thickness;
20-
uniform float screenspace;
20+
uniform bool screenspace;
2121
uniform vec2 size;
2222
void main() {
2323
#if defined (USE_SKINNING)
@@ -37,7 +37,7 @@ const OutlinesMaterial = /* @__PURE__ */ shaderMaterial(
3737
tNormal = instanceMatrix * tNormal;
3838
tPosition = instanceMatrix * tPosition;
3939
#endif
40-
if (screenspace == 0.0) {
40+
if (screenspace) {
4141
vec3 newPosition = tPosition.xyz + tNormal.xyz * thickness;
4242
gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);
4343
} else {

0 commit comments

Comments
 (0)