Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader not working #7

Open
tomihr opened this issue Feb 3, 2022 · 8 comments
Open

Shader not working #7

tomihr opened this issue Feb 3, 2022 · 8 comments

Comments

@tomihr
Copy link

tomihr commented Feb 3, 2022

Hello,
I have tried your shader, created material, and assigned it to the plain.
I have added a demo video to the VideoPlayer component and set Render Mode to Material Override.
I can hear sounds from the video but Playn is empty nothing shows up, I am working in SRP.
Thanks

@otdavies
Copy link
Owner

otdavies commented Feb 4, 2022

Hey tomihr,

First: what unity version / pipeline?

Second: It sounds as though maybe the material isn't setup correctly or the media isn't working for some reason. Could you try taking the shader and putting it on a quad then dragging a texture into the maintex slot? Find a still frame of some greenscreen footage to test with. If that doesn't work, take a screenshot of your setup and post it here.

Thanks!

@tomihr
Copy link
Author

tomihr commented Feb 7, 2022

Hello,
I am working in Unity 2020.3.25f, SRP Standard render pipeline.
And all I get when I drag an example image from a folder to a shader is an empty plane.
Screenshot_1

@otdavies
Copy link
Owner

otdavies commented Feb 7, 2022

Hmm, very strange. I'll take a look at that tomorrow. Thanks for letting me know.

@tomihr
Copy link
Author

tomihr commented Feb 7, 2022

Here is a screenshot with a simple setup
Screenshot_2
.

@Project-NSX
Copy link

Hello. I've just encountered the same issue using the 3drp using Unity 2020.3.20f

@otdavies
Copy link
Owner

Noted, working on figuring out the cause to this. Thanks for the reports.

@Project-NSX
Copy link

As a side note, I solved this by upgrading the project to use URP.
Also just to let you know, this works perfectly in VR. If the dev is using single-pass instance as the render mode then following this document will let them upgrade the shader for use with the single-pass render mode:
https://docs.unity3d.com/Manual/SinglePassInstancing.html

@otdavies
Copy link
Owner

To solve this in SRP, try removing these lines from the shader:

"RenderPipeline"="HDRenderPipeline"
"RenderType"="HDUnlitShader"

That should be a work around for now. I am working on providing a version of the shader for each pipeline with shadows + some other features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants