mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-30 22:54:21 +00:00 
			
		
		
		
	Revert "Change burnin masking function to max. Should preseve darker colors."
This reverts commit 3cee186663.
			
			
This commit is contained in:
		| @@ -108,8 +108,8 @@ Loader { | ||||
|  | ||||
|                  uniform highp float prevLastUpdate;" + | ||||
|  | ||||
|                 "float max3(vec3 v) { | ||||
|                     return max(v.x, max(v.y, v.z)); | ||||
|                 "float rgb2grey(vec3 v){ | ||||
|                     return dot(v, vec3(0.21, 0.72, 0.04)); | ||||
|                 }" + | ||||
|  | ||||
|                 "void main() { | ||||
| @@ -119,7 +119,7 @@ Loader { | ||||
|                     vec4 accColor = texture2D(burnInSource, coords); | ||||
|  | ||||
|                     float prevMask = accColor.a; | ||||
|                     float currMask = max3(txtColor); | ||||
|                     float currMask = rgb2grey(txtColor); | ||||
|  | ||||
|                     highp float blurDecay = clamp((lastUpdate - prevLastUpdate) * burnInTime, 0.0, 1.0); | ||||
|                     blurDecay = max(0.0, blurDecay - prevMask); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user