Diffuse Convultion/IBL
by ElFalcon · in General Discussion · 05/05/2012 (9:52 am) · 0 replies
Hello im amking an Image based lighting shader for torque..its suuper simple but i get some problems:
i made a new shader and defined a samplerCube there and asigned the texture..then i called the world normal and hooked it as the cordinate for a texCUBE where my cubemap is the sampler..but it displays it as below
[IMG]http://img213.imageshack.us/img213/1630/cubeproblem.png[/IMG]
Uploaded with ImageShack.us
what can be the problem..thanks for help..ill also try spherical harmonics in the nearest future ;)
P.S i saw that torque has a dynamiccubemap feature..how can i use it?
i made a new shader and defined a samplerCube there and asigned the texture..then i called the world normal and hooked it as the cordinate for a texCUBE where my cubemap is the sampler..but it displays it as below
[IMG]http://img213.imageshack.us/img213/1630/cubeproblem.png[/IMG]
Uploaded with ImageShack.us
what can be the problem..thanks for help..ill also try spherical harmonics in the nearest future ;)
P.S i saw that torque has a dynamiccubemap feature..how can i use it?