AcChosen / VR-Stage-Lighting

A collection of HLSL shaders, UdonSharp scripts, 3D models, prefabs, and assets designed to emulate the real control, quality, and complexity of professional stage lighting into VRChat in as many ways as possible.
MIT License
345 stars 24 forks source link

Black circle on the floor #17

Closed ToMathh closed 1 year ago

ToMathh commented 1 year ago

I've noticed that when you look away from the light a black circle appears, I've changed many settings and haven't found a way to make it disappear, a bug or lack of expertise on my part ?

And of course, congratulations on your remarkable work ! Thanks for your time !

(a screen is attached) Capture d'écran 2023-06-03 010200

AcChosen commented 1 year ago

image

So what's happening is that end of the projection cone mesh is either too close or too far away from the camera, causing those triangles at the cap of the cone to not render. This usually happens if you have your light very very far away from the ground for example. So what you can do is increase or decrease this parameter. You may have to edit the shader to increase its maximum range by editing the last number in the parenthesis at the end. (I'll increase this range in the next update soon!)

image

ToMathh commented 1 year ago

Thank you very much for your quick reply, it has indeed corrected my problem ! Have a great week and congratulations again for your work on VRSL !