- Timestamp:
- 2016-06-07 22:19:24 (7 years ago)
- Location:
- 2016/23/ohjaajat
- Files:
-
- 15 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/23/ohjaajat/Punasininen/Punasininen/PunasininenContent/Shockwave.fx
r7198 r7200 26 26 { 27 27 float2 uv = texCoord; 28 29 28 [unroll] for(int i=0; i<MAX_WAVES; i++) 30 29 { … … 33 32 } 34 33 float3 color = tex2D(TextureSampler, uv).rgb; 35 36 float radius = 5.0;34 35 float radius = 4.0; 37 36 float3 glow = float3(0, 0, 0); 38 37 for (int x = -3; x<3; x++) { … … 41 40 if (!(x == 0 && y == 0)) 42 41 w = 0.1 * 1.0 / sqrt(float(x*x + y*y)); 43 glow += w * tex2D(TextureSampler, uv + float2(radius * x / Resolution.x, 44 radius * y / Resolution.y)).rgb; 42 glow += w * tex2D(TextureSampler, uv + float2(radius * x / Resolution.x, radius * y / Resolution.y)).rgb; 45 43 } 46 44 } 47 45 glow *= 1.0 / 6.0 * 6.0; 48 color += 1.0* glow;46 color += 0.6 * glow; 49 47 50 48 return float4(color, 1);
Note: See TracChangeset
for help on using the changeset viewer.