playcanvas / playcanvas/engine

Broken environment reflections when using render to texture

Open
#7,183 10 comments 0 reactions 1 assignee View on GitHub

@mvaligursky is already working on this.

Since Dec 9, 2024.

area: graphics
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

Description

When rendering a model with a secondary camera into a renderTarget, the reflections are broken.

I was able to reproduce this using a totally clean checkout against latest main and v2.1.0. Weirdly enough the same code running on the examples website seems to work???

Steps to Reproduce
  1. load the examples app locally
  2. load up the render to texture example
  3. load a model with shiny parts

and add ContainerHandler + Basis
4. See that the model in the render to textures is super shiny and totally broken

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.