Jump to content

Shadow Generations Shaders - Detail dpnn: Difference between revisions

From HedgeDocs
Justin113D (talk | contribs)
Added gallery and RFL variable names
Justin113D (talk | contribs)
Simplified detail normal map documentation
Line 49: Line 49:
normal,1,2,
normal,1,2,
Detail [[Hedgehog Engine 2 - Textures#Normal map|Normal map]],
Detail [[Hedgehog Engine 2 - Textures#Normal map|Normal map]],
[[Normal_mapping|Normal map direction]] that is [[Texture Blending#Normal map blending|blended]] into the <code>normal</code> texture based on camera distance_,,;
Detail [[Normal_mapping|Normal map direction]]_,,;


| parameters =
| parameters =

Revision as of 19:58, 22 August 2025

Return to shaders list

Overview

Shader Behavior Overview
Shader model:

   [2] Standard (PBR)
Does not support:

An advanced PBR shader that uses distance blending to blend in a detail normal map.

Related shaders

Behavior

Uses distance blending to interpolate

  • from the normal texture
  • to the normal and normal[1] textures blended together.


The shader uses detailDistance and detailFadeRange from the stage RFL to determine the detail range.

Vertex Colors

  • Color is multiplied into the diffuse texture color
  • Alpha is multiplied into the diffuse texture alpha

Material Inputs

Textures

Name

Index

UV Index

Kind

Red

Green

Blue

Alpha

diffuse 0 0 Albedo Albedo color Opacity
specular 0 0 PRM Specular factor;
Gets multiplied by 0.25
Smoothness factor Metallic factor Ambient Occlusion
normal 0 0 Normal map Normal map direction N/A N/A
normal 1 2 Detail Normal map Detail Normal map direction N/A N/A

Parameters

Name

X

Y

Z

W

DetailFactor UV scale for the normal[1] texture N/A N/A N/A

Technical

Shader Features
is_compute_instancing
is_use_tex_srt_anim
enable_alpha_threshold
is_use_gi_prt
is_use_gi_sg
is_use_gi

Gallery

Cookies help us deliver our services. By using our services, you agree to our use of cookies.