From c428a893001e4fad1494f2f0b7e86ab62a7f2e0f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 20 Jan 2016 21:31:06 +1100 Subject: [PATCH] Updated Minecraft Classic lava animation algorithm. (markdown) --- Minecraft-Classic-lava-animation-algorithm..md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Minecraft-Classic-lava-animation-algorithm..md b/Minecraft-Classic-lava-animation-algorithm..md index 53ec6a9..4b8511d 100644 --- a/Minecraft-Classic-lava-animation-algorithm..md +++ b/Minecraft-Classic-lava-animation-algorithm..md @@ -3,4 +3,6 @@ This page demonstrates the process of reverse engineering the lava animation fro First, a plot of the R, G, and B components of randomly selected pixel. ![Graph of R, G, B, components of a randomly selected pixel.](https://cloud.githubusercontent.com/assets/6509348/12446024/c8cccc7c-bfbb-11e5-8846-760fbd9e332b.png) -It can be clearly seen from this that all the components use the same basic algorithm, except that they are offset and scaled by different values. \ No newline at end of file +It can be clearly seen from this graph that all the components use the same basic algorithm, except that they are translated and scaled by different values. +It can also be seen that the output of the basic algorithm is clamped between [-1, 1] or [0, 1] _before_ scaling and translation is applied. +___ \ No newline at end of file