Jump to content

Shadow Generations Shaders - Blend dpndpn: Difference between revisions

From HedgeDocs
Justin113D (talk | contribs)
Wording
Justin113D (talk | contribs)
Used new gallery parameter
Line 67: Line 67:
[[Hedgehog Engine 2 - Textures#Normal map|Normal map]],
[[Hedgehog Engine 2 - Textures#Normal map|Normal map]],
Second [[Normal_mapping|Normal map direction]]_,,;
Second [[Normal_mapping|Normal map direction]]_,,;
| gallery =
File:ShadowGenerations Blend dpndpn example.jpg{{!}}How <code>Blend_dpndpn</code> is used to transition from the bridge to the grass


| features =
| features =
Line 76: Line 80:


}}
}}
== Gallery ==
<gallery perrow="4" widths="400px" heights="300px" mode="nolines">
File:ShadowGenerations Blend dpndpn example.jpg|How <code>Blend_dpndpn</code> is used to transition from the bridge to the grass
</gallery>

Revision as of 20:43, 22 August 2025

Return to shaders list

Overview

Shader Behavior Overview

An advanced PBR shader that lets you blend between two sets of textures using vertex alpha.

Related shaders

Behavior

This shader has two sets of PBR textures:

  • diffuse, specular and normal
  • diffuse[1], specular[1] and normal[1]

The shader uses a blend factor to interpolate from the first set of textures to second one.
This blend factor consists of just the vertex alpha.

  • For the specular and normal textures, the blend factor is used as is.
  • For the diffuse textures, the blend factor is multiplied by the diffuse[1] texture alpha.

Multi-tangent

When enabled, the second set of tangents will be used to unpack the normal[1] texture.

Vertex Colors

  • Color is multiplied into the blended together diffuse texture color
  • Alpha is used as the basis for the blend factor

Material Inputs

Textures

Name

Index

UV Index

Kind

Red

Green

Blue

Alpha

diffuse 0 0 Albedo First Albedo color N/A
diffuse 1 2 Albedo Second Albedo color Multiplied into the vertex alpha (blend factor), but only for when blending the two diffuse textures!
specular 0 0 PRM First Specular factor;
Gets multiplied by 0.25
First Smoothness factor First Metallic factor First Ambient Occlusion
specular 1 2 PRM Second Specular factor;
Gets multiplied by 0.25
Second Smoothness factor Second Metallic factor Second Ambient Occlusion
normal 0 0 Normal map First Normal map direction N/A N/A
normal 1 2 Normal map Second Normal map direction N/A N/A

Parameters

This shader does not use any parameters.

Gallery

Technical

Shader Features
is_use_tex_srt_anim
enable_multi_tangent_space
is_use_gi_prt
is_use_gi_sg
is_use_gi
Cookies help us deliver our services. By using our services, you agree to our use of cookies.