Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Weird CubeMap question

Author
Message
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 27th Feb 2013 17:25
hi! I have weird question)) I need to texture object whith only one side of cubemap.So i use

float offset=0.8;
Texture=tex3D(CubeMapSampler,float3(IN.Tex.xy,offset));

Its work well.I can choose any one of six cube maps sides.But i cant understand what offset must be for each side!!I get this value randomly ( for example to get cubemap side 1 offset must be 0.5 and to get cubemap side 3 offset must be 0.3 )

Login to post a reply

Server time is: 2026-07-07 10:13:12
Your offset time is: 2026-07-07 10:13:12