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

Unity's buffers #34

Closed
PeppeDK opened this issue Sep 5, 2019 · 3 comments
Closed

Unity's buffers #34

PeppeDK opened this issue Sep 5, 2019 · 3 comments

Comments

@PeppeDK
Copy link

PeppeDK commented Sep 5, 2019

it would be great if you could pass unity's buffers like: "normal, albedo,..." in the shader "rthsShadowDXR.hlsl"

@i-saint
Copy link
Contributor

i-saint commented Sep 5, 2019

we have no plan to do it. what is your use case?

@i-saint i-saint mentioned this issue Sep 6, 2019
24 tasks
@PeppeDK
Copy link
Author

PeppeDK commented Sep 6, 2019

I would like to calculate specular effect for lights on rths, and to do it i need to get normals.
I'd like to read le normal through unity buffers rather than through the vertices of the 3d model.
If u think its not important, can u anyway just help me to pass textures from unity to rths? and read these on "rthsShadowDXR.hlsl"?.

Thanks, and congratulations for your job.

@i-saint
Copy link
Contributor

i-saint commented Sep 6, 2019

this plugin's purpose is just rendering hard shadows (mainly on legacy render pipeline). all the others are beyond the scope.
I recommend you to use Unity 2019.3 (beta) + HDRP. it supports raytracing. if you are really willing to fork and modify this plugin, Texture.GetNativeTexturePtr() will be your best friend.

@i-saint i-saint closed this as completed Sep 6, 2019
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

2 participants