#Unreal Engine Modding

3 messages · Page 1 of 1 (latest)

copper stream
#
  • Resources for contributing to the Unreal Engine mod
#

Modding SM6 Lutbuilders

example file: https://github.com/clshortfuse/renodx/blob/main/src/games/unrealengine/lutbuilders/sm6/lutbuilder_0x13FBB787.ps_6_6.hlsl

  1. ctrl+f 2722; and set SetUngradedAP1(float3(_123, _456, _789)); to the colors in the dot product

  2. ctrl+f 0.0613 and set SetUntonemappedAP1(float3(_123, _456, _789)); to the 3 colors above the 0.0613 matrix

  3. ctrl+f 0.999 and set SetTonemappedAP1(_123, _456, _789); to the 3 colors part of the matrix

  4. ctrl+f == 0, and this is where we set our output, right above the branch/if statement. Use the pow (exp2/log2) colors in the GenerateOutput function

  if (RENODX_TONE_MAP_TYPE != 0) {
    return GenerateOutput(float3(_123, _456, _789));
  }
  1. scroll all the way down to the end of the file, and add SV_Target = saturate(SV_Target); before the return
  • This assumes you're using flattened shaders

  • Compute shaders will require the output to be the UAV; but its still the same process -- look at any of the CS examples

  • SM6 lutbuilders need the --use-do-while flag to decompile
    -> decomp.exe [lutbuilder.cso] -f --use-do-while

#

Modding SM5 Lutbuilders:

[Placeholder]