Hello Lars,
Lars Bilke wrote:
> Hi,
>
> I want to use a singlefile .dds cubetexture in a glsl shader, but I did
> not found a solution here on the mail list and in the documentation.
> My understanding is that I have to add a CubeTextureChunk ( where I
> specify the texture image with setImage() ) to a ChunkMaterial but this
> does not work.
ah, yes, this is maybe a bit unintuitive: the CubeTextureChunk is for
cases where you have the six sides in separate images. For your case,
where all six sides are in one image you can use a normal TextureChunk,
it should note that the image has a sideCount > 1 and handle that correctly.
Hope it helps,
Carsten
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users