  | | | 2nd texture layer woes | 2nd texture layer woes 2003-11-18 - By NoiseCrime
Back
-- -- Original Message -- -- From: "Agust�n Mar�a Rodr�guez" <agustin@(protected)>
Hi,
Not really sure what you're trying to do here, becuase the same thing can be achieved just by using the available layers within a shader. The only reason you need to add a new texturelayer is if you want to specicify different texture coordinates.
Anyway to get you code working directly remove all those updatestage calls (no idea why you're doing that) and add the following line after texturelayer.add()
modelRef.meshDeform.mesh[1].textureLayer[2].texturecoordinatelist = modelRef.meshDeform.mesh[1].textureLayer[1].texturecoordinatelist
This simply sets the 2nd texture layer texturecoordinate list to the same values as the first texture layer.
NoiseCrime 2003 www.noisecrime.com Purveyor of cool Shockwave games, toys and new media content.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|
 |