SanielX/DeferredDecals

doesnt render from in game camera only scene view

Closed this issue · 2 comments

i have no idea whats wrong

Yeah this repo is really old
Anyway, you might want to try next thing
In DeferredDecalRenderer.cs
Add following code:

void OnEnable()  => Camera.onPreRender += RenderDecals;
void OnDisable() => Camera.onPreRender  -= RenderDecals; 

Then change Update() method definition to be RenderDecals(Camera cam)
And then remove this line

var cam = Camera.current;

This should basically make decals render on every camera

that fixed it! thanks