We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to color the ball using the forward-shading.js plug-in. http://jsdo.it/cx20/4wmm
<mesh albedo="#0000ff" position="0,0,0" geometry="football" texture="xxx.png"/>
However albedo did not apply to texture. The ball is still white. I think the shader has the following mistakes.
#ifdef USE_TEXTURE vec4 texColor = texture2D(texture,vTexCoord); //dBaseColor = texColor.rgb; dBaseColor *= texColor.rgb; lastColor.a *= texColor.a; #endif
Below is the result of modification in the shader editor.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried to color the ball using the forward-shading.js plug-in.
http://jsdo.it/cx20/4wmm
However albedo did not apply to texture. The ball is still white.
I think the shader has the following mistakes.
Below is the result of modification in the shader editor.
The text was updated successfully, but these errors were encountered: