keijiro / KlakHap

HAP video player plugin for Unity
Other
341 stars 27 forks source link

Video with alpha and interaction with the environment #23

Closed f00br closed 5 years ago

f00br commented 5 years ago

Hi Keijiro!

Quick question about the interaction of video with alpha channel and light sources. I can't do it so that the video can interact with the environment. Could you tell me how to make the alpha video interact with light and other environmental effects?

I understand that in order for a video with alpha to be influenced by light sources, you need to put one more material. But I do not know what to put. Sorry for the stupid questions.

The only time when my alpha video started interacting with a light source - I changed the shader to Sprites/Diffuse.

But I understand that this is not quite the right move. Please tell me the right decision.

Thnx.

keijiro commented 5 years ago

https://docs.unity3d.com/Manual/StandardShaderMaterialParameterRenderingMode.html

keijiro commented 5 years ago

I'm closing this issue now. Please feel free to reopen for further questions.