ywywdh / papervision3d

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

Shading not applied to BitmapMaterial when precise is true, resolved in comment #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. creat bitmap material
2. set prices to true
3. add shading to creating shaded material

What is the expected output? What do you see instead?
Shaded material, but instead shading is not visible. This only happens for 
precise = true materials

What version of the product are you using? On what operating system?
Latest SVN repository. it says v2.0.0 and I know it's FP10 update

Please provide any additional information below.

Here is what to change to resolve this
change Line 142 at BitmapMaterial.as
from 
graphics.beginBitmapFill(bitmap, null, tiled,   smooth); 
to
graphics.beginBitmapFill(altBitmap ? altBitmap : bitmap, null, tiled,   
smooth); 

I guess shaders supply altBitmap - alternative bitmap generated by shader and 
new update did not use it for precise part of drawTriangle, this line above 
fixes it 

Original issue reported on code.google.com by alex.gvo...@gmail.com on 6 Oct 2010 at 11:31