[info-performer] 3D texture with GLSL

Date view Thread view Subject view Author view

From: Irawati Sylvia (sylvi++at++imrc.kist.re.kr)
Date: 06/30/2005 18:54:47


 

Hi,

I used GLSL to make a water effect,

I need to load 3D texture in the shader,

I tried to use loadMultiFile in the Performer

ptexture->loadMultiFile(fname, i);

Then I send that texture the shader.

The problem is, It seems the shader did not recognize the texture as 3D
texture, but just a 2D texture.

 

Do I need to setFormat ptexture as a 3D texture, how can I do that?

 

Thanks in advanced.

 

 

- sylvi -

 


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 30 2005 - 18:54:52 PDT