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

fix: Add support for sRGBTransferOETF to fix the runtime error 'LinearTosRGB' : no matching overloaded function found #380

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

gumob
Copy link
Contributor

@gumob gumob commented Oct 6, 2024

Add support for sRGBTransferOETF to fix the runtime error below.

THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

Material Name: 
Material Type: ShaderMaterial

Program Info Log: Fragment shader is not compiled.


FRAGMENT

ERROR: 0:173: 'LinearTosRGB' : no matching overloaded function found
ERROR: 0:173: '=' : dimension mismatch
ERROR: 0:173: 'assign' : cannot convert from 'const mediump float' to 'out highp 4-component vector of float'


  168: 
  169: uniform sampler2D tDiffuse;
  170: varying vec2 vUv;
  171: void main() {
  172: 	vec4 tex = texture2D( tDiffuse, vUv );
> 173: 	gl_FragColor = LinearTosRGB( tex );
  174: }

…arTosRGB' : no matching overloaded function found`
Copy link

codesandbox-ci bot commented Oct 6, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@CodyJasonBennett CodyJasonBennett merged commit 232a4cd into pmndrs:main Oct 7, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants