encima / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Material color is merged with texture, even if opaque #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
In the viewer, open an object that contains a black mesh that has an opaque 
texture

What is the expected output? What do you see instead?
The mesh is shown black and the texture is not visible.
You should only see the texture on the mesh.

What version of the product are you using? On what operating system?
Problem exists on the latest SVN revision

Please provide any additional information below.
You can find attached 2 3D objects, both with a texture but one has black 
material and the other has white. They should render the same way.

Original issue reported on code.google.com by laurent....@fabzat.com on 18 Mar 2014 at 8:54

Attachments:

GoogleCodeExporter commented 9 years ago
Yes it is. The diffuse color defined in a material is used to modulate 
corresponding texels. So when texturing and shading are both enabled, the final 
color of a fragment is calculated as this: fragmentColor = materialColor * 
texel.

Original comment by Humu2...@gmail.com on 18 Mar 2014 at 2:11