We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d8ecb commit bd8c036Copy full SHA for bd8c036
src/core/Outlines.tsx
@@ -17,7 +17,7 @@ const OutlinesMaterial = /* @__PURE__ */ shaderMaterial(
17
#include <morphtarget_pars_vertex>
18
#include <skinning_pars_vertex>
19
uniform float thickness;
20
- uniform float screenspace;
+ uniform bool screenspace;
21
uniform vec2 size;
22
void main() {
23
#if defined (USE_SKINNING)
@@ -37,7 +37,7 @@ const OutlinesMaterial = /* @__PURE__ */ shaderMaterial(
37
tNormal = instanceMatrix * tNormal;
38
tPosition = instanceMatrix * tPosition;
39
#endif
40
- if (screenspace == 0.0) {
+ if (screenspace) {
41
vec3 newPosition = tPosition.xyz + tNormal.xyz * thickness;
42
gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);
43
} else {
0 commit comments