vazgriz / ReflexSight

Reflex sight shader for Unity3D
MIT License
27 stars 4 forks source link

A little help to make this shader in ShaderGraph? #2

Open OkazakiNaoki opened 3 years ago

OkazakiNaoki commented 3 years ago

I tried to port it to UE4 material. But failed for unknown reason. Then I am thinking if it can work in the similar node editor: ShaderGraph in Unity. But still not luck. It looks like the image below: https://i.imgur.com/IvCBVe1.png Would you mind to help me figure this out?

Using 2021.1.9f1 and Universal rendering pipeline.

vazgriz commented 3 years ago

I'm not familiar with shader graph, but I might be able to help. It looks like the first two "Transform" nodes in your graph are transforming from World space to View space. In my shader code, I transform from Object space to View space. This might be the problem.