Skip to content

Conversation

@mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Dec 24, 2025

Add vignette color support

Adds a configurable color property to the vignette post-effect, allowing the vignette to blend toward any color instead of only black.

Changes

  • Added vignetteColor uniform to both GLSL and WGSL vignette shader chunks
  • Modified applyVignette to use mix() for blending toward the specified color
  • Added vignetteColor property to RenderPassCompose
  • Added color to Vignette settings in CameraFrame API (defaults to black)
  • Added color attribute to the camera-frame.mjs script wrapper
  • Updated post-processing example with a color picker control for vignette

API

cameraFrame.vignette.color = new pc.Color(0.2, 0, 0); // Dark red vignette

Screenshot 2025-12-24 at 15 11 15

@mvaligursky mvaligursky self-assigned this Dec 24, 2025
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Dec 24, 2025
@mvaligursky mvaligursky requested a review from a team December 24, 2025 15:14
@mvaligursky mvaligursky merged commit d4277fb into main Dec 24, 2025
7 checks passed
@mvaligursky mvaligursky deleted the mv-vignette-color branch December 24, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants