Community Tutorial: Ocean Simulation

I found a solution. Turns out that I was close when I said the macro was tied to compute shaders.

surrounding the whole file with a check on “GPU_SIMULATION” (like it’s already done for the nodes code) removes the error.

Makes sense since the engine most likely performes the inclusion before the first line from the hlsl node, meaning it is not guarded by the #if directive.

2 Likes