- Joined
- Feb 4, 2008
- Messages
- 9,753
- Reaction score
- 1,024
- Points
- 203
I think I have an explanation for this, after looking at the code you posted earlier. The code you posted, deals with alpha levels used by materials which is all well and good but if I have understood N_Molson right, his tree uses texture alpha, not material alpha. So the branches are essentially textured 2D planes with the empty areas blanked out using an alpha layer in the texture.It should work or is there something I have overlooked ?? I don't have a tree so can't test it. It might be good idea to check that the tree really goes through the shader being modified. You can test it by adding the following line in the shader. It should turn everything red that goes through it. You should have red tree.
Code:float4 FAST_PS(float4 sc : VPOS, FASTData frg) : COLOR { return float4(1, 0, 0, 1); // <-- add this -->
Last edited:

