-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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
Request function Render To Depth #13858
Comments
Since you know how to implement your feature request, can you file a pull request (PR) and propose a change to the library? Also, what is your use case? Your use case can provide a compelling reason for implementing the new feature. A live example can be helpful. |
I explained what does not suit the normal method render. I will repeat.
then it has two drawbacks.
Well, I'll try, is not perfectly, its work, and you will check and if arranged, then deposit it into the library. for WebGLShadowMap:
for WebGLRenderer:
|
So you want to render the scene to a render target and use
|
Yes. |
You need a function similar to renderer.render, but with the ability to render it in depth.
Why is not standard use appropriate?
due to the fact that using this method for Skin mesh will be drawn a static position, i.e. without animation.
Why is not suitable use:
renderer.render (scene, camera, ...);
because of the fact that some objects have their own CustomDepthMaterial. And also due to the fact that too heavy shader can be, but in the depths it is not needed.
How did I do this? used something between renderer.render and WebGLShadowMap.renderObject, because in WebGLShadowMap.renderObject is implemented exactly as it should be done in WebGLRenderer.
I just do not want to make my edits to it after every update of the engine, so I ask you to do this, I think it will be useful to many, now it is not enough.
The text was updated successfully, but these errors were encountered: