Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playground: Plugging 'greater than' node into color socket of standard material leads to crash #27893

Open
abc013 opened this issue Mar 9, 2024 · 0 comments
Assignees
Labels

Comments

@abc013
Copy link
Contributor

abc013 commented Mar 9, 2024

Description

Error message:

THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

Material Name: 
Material Type: MeshStandardNodeMaterial

Program Info Log: Must have a compiled fragment shader attached:
SHADER_INFO_LOG:
ERROR: 0:1526: 'greaterThan' : no matching overloaded function found

FRAGMENT

ERROR: 0:1526: 'greaterThan' : no matching overloaded function found

  1521: 
  1522: 
  1523: 	vec3 TransformedNormalView = normalize( nodeVarying0 );
  1524: 
  1525: 	
> 1526: 	vec4 diffuseColor = vec4( greaterThan( nodeUniform1, nodeUniform2 ) ); diffuseColor.a *= opacity;
  1527: #if 0 > 0
  1528: 	vec4 plane;
  1529: 	#ifdef ALPHA_TO_COVERAGE
  1530: 		float distanceToPlane, distanceGradient;
  1531: 		float clipOpacity = 1.0;
  1532: 		[three.module.js:20276:14](https://threejs.org/build/three.module.js)

This also affect all other logic operators.

Reproduction steps

Rebuild the following node graph in the three.js playground:
image

Code

No code required.

Live example

Open this example.json in the playground.

Version

r162

Device

Desktop

Browser

Chrome, Firefox

OS

Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants