Skip to content

Commit

Permalink
Fix underwater tint not working
Browse files Browse the repository at this point in the history
  • Loading branch information
vampcat committed Sep 2, 2017
1 parent 87e3a38 commit c31a41c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public InitialPostProcessingNode(Context context) {
public void process() {
PerformanceMonitor.startActivity("rendering/initialPostProcessing");

// Common Shader Parameters

initialPostMaterial.setFloat("swimming", activeCamera.isUnderWater() ? 1.0f : 0.0f, true);

// Shader Parameters

initialPostMaterial.setFloat3("inLiquidTint", worldProvider.getBlock(activeCamera.getPosition()).getTint(), true);
Expand Down

0 comments on commit c31a41c

Please sign in to comment.