Add Render Targets manual page - #1102
Open
mvaligursky wants to merge 2 commits into
Open
Conversation
Adds a foundational "Render Targets" page under Advanced Rendering covering creation, rendering a scene into a target, excluding the display surface via layers, the RenderTarget origin option for cross-API orientation, choosing a renderable/HDR format, resizing, MSAA and cleanup, with the render-to-texture example embedded. Also links the new page from the Multiple Render Targets and Multiple Cameras pages, and adds the origin option to the MRT render target snippet.
Translates the new Render Targets manual page into Japanese, and mirrors the companion edits (origin option in the MRT snippet and cross-links) in the Japanese Multiple Render Targets and Multiple Cameras pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a foundational Render Targets page under Advanced Rendering, filling a gap the Multiple Render Targets page previously assumed. It documents the full render-to-texture workflow and the new
RenderTargetoriginoption for cross-API orientation.New page (
advanced-rendering/render-targets.md):priority).originoption (RENDERTARGET_ORIGIN_TOP/BOTTOM/NATIVE) and the WebGL2↔WebGPU row-order difference.GraphicsDevice.getRenderableHdrFormat).graphics/render-to-textureengine example.Companion changes:
sidebars.js: inserts the page before Multiple Render Targets.origin: pc.RENDERTARGET_ORIGIN_TOPto the render target snippet and a link to the new page.Important
Do not merge until engine 2.22 is released. The
originoption and theRENDERTARGET_ORIGIN_*constants ship in engine 2.22; until that is the published release, the API reference links (variables/RENDERTARGET_ORIGIN_*.html) would 404 and the documented code would not run for readers.