Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • P PracticeDx
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Clark Lin
  • PracticeDx
  • Wiki
  • Plan for Adding Diffusion Effect

Last edited by Clark Lin May 19, 2023
Page history

Plan for Adding Diffusion Effect

Lighting Setup

Light Type

  1. Directional Light
    • Sunlight
  2. Point Light
    • Light bulb
  3. Spot Light
    • Cone

Light Source

  1. Position
  2. Color
  3. Intensity
  4. Attenuation

Light Property

  1. Direction (for Directional only, like sunlight)
  2. Attenuation (for point light and spot light)

Ambient Light

Default lighting behavior involves ambient light to prevent complete dark area

Shading Model

Math model used to calculate color or pixel in HLSL.

Different type of shading model:

  • Lambertian or Diffuse Reflection
  • Phong Shading
  • Blinn-Phong Shading
  • Physically Based Shading (PBR)

Material Properties (Diffuse Color)

Defines visual characteristics and behavior of a surface or material.

Common material properties include:

  • Diffuse Reflectance
  • Specular Reflectance
  • Ambient Reflectance
  • Transparency/Opacity
  • Roughness/Smoothness

Diffuse Color:

  • Diffuse Color as Texture Modulation
    • The diffuse color acts as a multiplier for the RGB values obtained from the texture
  • Diffuse Color as Texture Tint
    • RGB values of the diffuse color are added to or mixed with the RGB values obtained from the texture
  • Separate Diffuse Color and Texture
    • The diffuse color may be used to determine the overall color of the surface, while the texture color provides additional detail or variation. The two colors can be combined in the shader based on the desired shading model or lighting equation

Normal Vector

NA

Clone repository
  • Known Issues and Solution
  • Plan for Adding Diffusion Effect
  • Home