Unity HDRP Product Visualizer 1.0.0
Interactive 3D product showcase built with Unity 6 and HDRP
Loading...
Searching...
No Matches
BackgroundPreset Class Reference

Serialisable data record that defines one studio backdrop look. More...

Public Attributes

string presetName = "Dark Studio"
 Human-readable name shown in the on-screen UI (e.g. "Dark Studio").
 
Color topColor = new(0.06f, 0.06f, 0.18f, 1f)
 Top gradient colour fed into the GradientBackground shader's _TopColor.
 
Color bottomColor = new(0.01f, 0.01f, 0.04f, 1f)
 Bottom gradient colour fed into _BottomColor.
 
float vignette = 1.2f
 Radial vignette intensity fed into _VignetteAmount (0 = off, 4 = heavy).
 
Color groundTint = new(0.10f, 0.10f, 0.12f, 1f)
 Tint applied to the ground plane's _BaseColor.
 

Detailed Description

Serialisable data record that defines one studio backdrop look.

Each preset drives two renderers through MaterialPropertyBlock overrides:

  • The backdrop quad, which uses the custom GradientBackground shader.
  • The ground quad, which uses HDRP/Lit.

Definition at line 16 of file BackgroundController.cs.

Member Data Documentation

◆ bottomColor

Color BackgroundPreset.bottomColor = new(0.01f, 0.01f, 0.04f, 1f)

Bottom gradient colour fed into _BottomColor.

Definition at line 25 of file BackgroundController.cs.

◆ groundTint

Color BackgroundPreset.groundTint = new(0.10f, 0.10f, 0.12f, 1f)

Tint applied to the ground plane's _BaseColor.

Definition at line 31 of file BackgroundController.cs.

◆ presetName

string BackgroundPreset.presetName = "Dark Studio"

Human-readable name shown in the on-screen UI (e.g. "Dark Studio").

Definition at line 19 of file BackgroundController.cs.

◆ topColor

Color BackgroundPreset.topColor = new(0.06f, 0.06f, 0.18f, 1f)

Top gradient colour fed into the GradientBackground shader's _TopColor.

Definition at line 22 of file BackgroundController.cs.

◆ vignette

float BackgroundPreset.vignette = 1.2f

Radial vignette intensity fed into _VignetteAmount (0 = off, 4 = heavy).

Definition at line 28 of file BackgroundController.cs.


The documentation for this class was generated from the following file: