Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Now this is weird... (Problem with ObjSpaceLightDir)

$
0
0
Hi.

I have something strang going on with a shader I wrote specifically to hard-code all the lighting code, rather than using a surface shader, as surface shaders, I have found, are optimized, but I wish to make it even simpler and only add the relevant bits for my project.

My problem with this? ObjSpaceLightDir COMPLETELY SCREWS UP on DX9, but on DX11, it works flawlessly!

In DX9, light direction completely screws up:
View attachment 112155
But in DX11 renderer, (actual video card...

Now this is weird... (Problem with ObjSpaceLightDir)

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>