s&
family_starAbout
newspaperBlog
published_with_changesChanges
mapRoadmap
gamesGames
business_centerWorkshop
sprintDashboard
sprintGame Charts
delivery_truck_speedMap Charts
forumForum
docsDocs
docsDocumentation
dashboardApi Reference
inputLog in with Steam
chevron_leftChange Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
🚀Getting Started
🪑Scene
💼Code
🔩Editor
🎎Assets
🎨Graphics
✨Effects
🖼️Post Processing
📈Shader Graph
🎨Shaders
📥Attributes and Variables
🍎Classes
🌥️AmbientLight
🔗Bindless API
👀Depth
🪩Dynamic Reflections
🌁Fog
notepadG-Buffer
💡Light
🚝Motion
🥢Screen Space Tracing
🕳️SSAO
✂️Texture Sheets
📋Command Lists
🆕Getting Started
⚡GPU Instancing
💎Material
📋Modes
📚Reference
⚙️Render States
🎨Sampler States
🔦Shading Model
🖥️UI
🎮Gameplay
🧑‍🤝‍🧑Networking & Multiplayer
💽Services
menu
Docs
🎨 Graphics
🎨 Shaders
🍎 Classes
🌁 Fog
Fog

Fog

This class applies atmospheric effects to a fragment.

Only useful if you're doing your own Shading Model, otherwise this is already all implied when you use ShadingModelStandard

API

float3 Fog::Apply( float3 worldPos, float2 screenPos, float3 color )

  • Applies all atmospheric affects ( Gradient Fog, Cubemap Fog, Volumetric Fog ) to this fragment.





Created 8 Dec 2024
Updated 8 Dec 2024
  • News
  • About
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter