Postprocessing: Bloom Pass: Shader couldn't compile for 'linearToRelativeLuminance'.

Created on 1 Nov 2017  路  2Comments  路  Source: vanruesc/postprocessing

Hi, thanks you for this library, it's amazing.

It's the first time that i find a problem that I'm not able to solve related to your library.

OS: Windows 7 x64
Chrome Version: 61.0.3163.100

My problem is the following.

I have this error in console only when BloomPass is active.

THREE.WebGLShader: Shader couldn't compile
THREE.WebGLShader: gl.getShaderInfoLog() fragment ERROR: 0:171: 'linearToRelativeLuminance' : no matching overloaded function found
THREE.WebGLProgram: shader error:  0 gl.VALIDATE_STATUS false gl.getProgramInfoLog invalid shaders
ERROR: 0:171: 'linearToRelativeLuminance' : no matching overloaded function found
WebGL: INVALID_OPERATION: useProgram: program not valid

Complete Error Stack Trace

I'm working on Angular4 and Typescript and I've tested the application in Angular2 Too, but the error stack trace is the same.
I've tested it only on Chrome, and I don't know if error appears on other browsers.

I've also tried to take a look at the shader program, but my knowledge in OpenGL are very limited and I've not been able to find a solution.

Can you help me to understand what went wrong?

bug

Most helpful comment

Hi Alexander,

thanks for reporting this issue!

For some reason I thought that the linearToRelativeLuminance function was introduced in [email protected] but that's not the case. The postprocessing demo works because it currently uses the dev version [email protected] in which the function is available.

Will fix this ASAP.

All 2 comments

Hi Alexander,

thanks for reporting this issue!

For some reason I thought that the linearToRelativeLuminance function was introduced in [email protected] but that's not the case. The postprocessing demo works because it currently uses the dev version [email protected] in which the function is available.

Will fix this ASAP.

Thank you @vanruesc
Now all works fine!

Thanks a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thewizardwand picture thewizardwand  路  3Comments

nagman picture nagman  路  3Comments

dghez picture dghez  路  4Comments

emmelleppi picture emmelleppi  路  4Comments

scarletsky picture scarletsky  路  3Comments