|
|
|
1 registered members (qin),
4,087
guests, and 7
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: pp bloom in gamestudio
[Re: Excessus]
#169241
12/27/07 15:24
12/27/07 15:24
|
Joined: Oct 2003
Posts: 827 22�21'24"N 114�07'30...
Frederick_Lim
User
|
User
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
|
Quote:
Quote:
if((Color.r+Color.g+Color.b)/3<vecSkill1.x) { Color.rgb = 0; }
I think you will get a better quality bloom if you just calculate the luminance instead of making dark parts black. You can calculate luminance like this: float lum = dot(color, float3(0.299f, 0.587f, 0.114f); return (float3)lum;
Then just blur it and blend with the original render like you already do.
If I try to replace the lines I got the error:
Quote:
mtlBlackout(15): error X3017: cannot implicitly convert from 'float3' to 'float4' > return (float3)lum; <
Please help. Thanks in advance.
|
|
|
|
|
|
|