-
Notifications
You must be signed in to change notification settings - Fork 29
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
A material with textures in HDRP #43
Comments
Hello, unfortunately not without writing your own shader. The way I created the HDRP shader was, I created a super basic shader with a color in Shader Graph and then copied the generated code and modified the code to add the missing OIT shader code. |
Thanks Thanks |
You need to use the |
Thanks for the reply.
Let me know if you can do paid work on this.
Could not find your email. If you can please email me at
***@***.***
…On Mon, Sep 23, 2024, 00:30 Till Davin ***@***.***> wrote:
You need to use the createFragmentEntry() method of the package and pass
in the fragment's final color value. This is done in a copy of the Forward
pass include file
<https://github.com/happy-turtle/oit-unity/blob/main/HDRP%2FShaders%2FOitShaderPassForwardHDRP.hlsl#L266>.
Because this is not directly in the main shader file, but in a separate
file, you need to swap the import in the main shader file
<https://github.com/happy-turtle/oit-unity/blob/main/HDRP%2FShaders%2FOitLitHDRP.shader#L8110>.
Just going through this remonds me again, what a terrible experience
writing these is. 😅
For a better understandable and minimal example on how to implement an OIT
shader, have a look at the Unlit shader example.
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLLKG5PRSKBMX4W4SV5NU3ZX4VVNAVCNFSM6AAAAABOLWT6TOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHE3DEOBRHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi
How can I make the HDRP Lit material to get at least albedo/difuse texture instead of/in addition to color?
The text was updated successfully, but these errors were encountered: