Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseraytracingShader | RayTracingShader to execute. |
rayGenShaderName | Name of the ray generation shader. |
rayGenShaderNameID | Property name ID. Use Shader.PropertyToID to get this ID. |
width | The width of the ray generation shader thread grid. |
height | The height of the ray generation shader thread grid. |
depth | The depth of the ray generation shader thread grid. |
camera | The Camera to be used as environment to dispatch RayTracingShader. |
Add a command to execute a RayTracingShader.
When the command buffer executes, a RayTracingShader is dispatched and launches the threads of ray generation shader. Width, height and depth must be above zero and width*height*depth <= 2^30.