Last updated on
Jul 13, 2023
- Substance 3D home
- Home
- Getting Started
- Getting Started overview
- Activation and licenses
- System requirements
- Project creation
- Export
- Export overview
- Export window
- Export presets
- Export overview
- Glossary
- Performance
- Getting Started overview
- Interface
- Assets
- Substance 3D Assets
- Color picker
- Display settings
- History
- Layer stack
- Main menu
- Project configuration
- Properties
- Settings
- Shader settings
- Texture Set
- Toolbars
- Viewport
- Miscellaneous
- Assets
- Painting
- Painting overview
- Tool list
- Straight line
- Lazy mouse
- Symmetry
- Fill projections
- Presets
- Presets overview
- Creating and saving presets
- Creating particles presets
- Photoshop brush presets (ABR)
- Dynamic strokes
- Advanced channel painting
- Vector graphic (.svg & .ai)
- Text resource
- Effects
- Baking
- Content
- Creating custom effects
- Importing assets
- Creating custom effects
- Features
- Automatic UV Unwrapping
- Physical size
- Smart Materials and Masks
- Subsurface Scattering
- Dynamic Material Layering
- UV Reprojection
- UV Tiles
- Color Management
- Post Processing
- Iray Renderer
- Plugins
- Sparse Virtual Textures
- Custom Shaders
- SpaceMouse® by 3Dconnexion
- Universal Scene Description (USD)
- Send to
- Technical Support
- Performance Guidelines
- Configuring Pens and Tablets
- Exporting the log file
- Exporting a DXDiag
- Technical issues
- GPU Issues
- Crash when working with overclocked GPU
- Forcing the external GPU on Mac OS
- GPU drivers compatibility
- GPU drivers crash with long computations (TDR crash)
- GPU has outdated drivers
- GPU is not recognized
- GPU is not recognized and is mentionned as GDI Generic
- Issues with Nvidia GPUs on recent Mac OS versions
- Multi/Bi-GPU
- Running on integrated GPU
- Painter doesn't start on the right GPU
- Startup Issues
- Rendering Issues
- Stability Issues
- Miscellaneous Issues
- GPU Issues
- Workflow Issues
- Export Issues
- Tools Issues
- Project Issues
- Library Issues
- Viewport Issues
- Plugins Issues
- License Issues
- Pipeline and integration
- Installation and preferences
- Configuration
- Resource management
- Scripting and development
- Scripts and plugins
- Shader API Reference
- Shader API overview
- Changelog - Shader API
- Libraries - Shader API
- Lib Alpha - Shader API
- Lib Bayer - Shader API
- Lib Defines - Shader API
- Lib Emissive - Shader API
- Lib Env - Shader API
- Lib Normal - Shader API
- Lib PBR - Shader API
- Lib PBR Aniso - Shader API
- Lib Pom - Shader API
- Lib Random - Shader API
- Lib Sampler - Shader API
- Lib Sparse - Shader API
- Lib SSS - Shader API
- Lib Utils - Shader API
- Lib Vectors - Shader API
- Parameters - Shader API
- Shaders - Shader API
- Release notes
- Release notes overview
- All Changes
- Version 10.1
- Version 10.0
- Version 9.1
- Old versions
- Version 9.0
- Version 8.3
- Version 8.2
- Version 8.1
- Version 7.4
- Version 7.3
- Version 7.2
- Version 2021.1 (7.1.0)
- Version 2020.2 (6.2.0)
- Version 2020.1 (6.1.0)
- Version 2019.3
- Version 2019.2
- Version 2019.1
- Version 2018.3
- Version 2018.2
- Version 2018.1
- Version 2017.4
- Version 2017.3
- Version 2017.2
- Version 2017.1
- Version 2.6
- Version 2.5
- Version 2.4
- Version 2.3
- Version 2.2
Lib Defines - Shader API
lib-defines.glsl
Public Constants: M_PI M_2PI M_INV_PI M_INV_LOG2 M_GOLDEN_RATIO
Some useful constants
const float M_PI = 3.14159265; const float M_2PI = 2.0 * M_PI; const float M_INV_PI = 0.31830988; const float M_INV_LOG2 = 1.442695; const float M_GOLDEN_RATIO = 1.618034;
Blending modes constants
const int BlendingMode_Disable = 0; const int BlendingMode_Replace = 1; const int BlendingMode_Normal = 2; const int BlendingMode_Darken = 3; const int BlendingMode_Multiply = 4; const int BlendingMode_ColorBurn = 5; const int BlendingMode_LinearBurn = 6; const int BlendingMode_Lighten = 7; const int BlendingMode_Screen = 8; const int BlendingMode_ColorDodge = 9; const int BlendingMode_LinearDodge = 10; const int BlendingMode_Overlay = 11; const int BlendingMode_SoftLight = 12; const int BlendingMode_HardLight = 13; const int BlendingMode_VividLight = 14; const int BlendingMode_LinearLight = 15; const int BlendingMode_PinLight = 16; const int BlendingMode_Difference = 17; const int BlendingMode_Exclusion = 18; const int BlendingMode_Tint = 19; const int BlendingMode_Saturation = 20; const int BlendingMode_Color = 21; const int BlendingMode_Value = 22; const int BlendingMode_Divide = 23; const int BlendingMode_InverseDivide = 24; const int BlendingMode_Passthru = 25; const int BlendingMode_NM_Combine = 26; const int BlendingMode_NM_Oriented = 27; const int BlendingMode_NM_InverseOriented = 28; const int BlendingMode_Subtract = 29; const int BlendingMode_InverseSubtract = 30; const int BlendingMode_AddSub = 31;