SteamVR/Environments/lightcookies/

From Valve Developer Community
Jump to: navigation, search
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024

Light Cookies

Cookies are used on most of the spotlights in Valve’s summit pavilion environment, they add a subtle layer of realism to the scene by breaking up the uniform distribution of the spotlight.

Light cookies serve a similar usage to Gobos in photography, in video games a Cookie is a projected texture from your light source, imagine it as a texture that covers the lens of your light source and affects all light that passes through.

This is used to simulate the effect that light produces when passing through different types of light fixtures. Cookies are often used to simulate IES light profiles to achieve more realistic light shapes.

Bellow is a list of the currently available Cookies in SteamVR Home, there texture and their usage ingame.

Flashlight

Spotlight1

Spotlight2

Spotlight3

Spotlight4

Spotlight5

Note.pngNote: In SteamVR Home you are currently limited to use the default set of Cookie textures. It is possible that a future update may enable support for custom Cookie textures.

Usage

To apply a Cookie texture to your spotlight, select it in hammer and find the “Light Cookie” field in the spotlights object properties. Here add the name of one of the Cookies from the list above.

The object properties dialog box of the spotlight entity, showing where a Cookie texture is defined.