Skip to content

Commit

Permalink
Add Shader Support For Emissive Maps (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Apr 13, 2022
1 parent 43d15b0 commit c984ca9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/EditorAssets/Projects/DefaultProject/10037.ERS
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ void main()
}

// Add Emissive Texture
Result += SampledData.EmissiveTextureColor;

if (HasEmissive) {
Result += SampledData.EmissiveTextureColor;
}

FragColor = Result;

}
Expand Down Expand Up @@ -243,3 +245,4 @@ vec4 CalculateSpotLight(STRUCT_SpotLight Light, STRUCT_SampledData SampledData,




0 comments on commit c984ca9

Please sign in to comment.