traxx
Modding Rookie
Posts: 31
|
Post by traxx on Sept 9, 2012 12:01:08 GMT 1
I want make a little mix, I want the sun effect from icenhancer 2.0 (yellow and with sunrays) but I want the multicolor lensflare effect from 2.1 instead of the yellow line from 2.0,
so the question is: what part exactly correspond to lensflare in the bloom to replace it?
|
|
|
Post by aksine on Sept 9, 2012 19:14:00 GMT 1
I want make a little mix, I want the sun effect from icenhancer 2.0 (yellow and with sunrays) but I want the multicolor lensflare effect from 2.1 instead of the yellow line from 2.0, so the question is: what part exactly correspond to lensflare in the bloom to replace it?Im not sure on how to do that ,but i think the result is possible ,Maybe legaccy knows how to do that
|
|
|
Post by legacyy on Sept 9, 2012 19:28:40 GMT 1
Well i don't know either :/ Never been that much into coding. I always changed the whole bloom file^^
|
|
traxx
Modding Rookie
Posts: 31
|
Post by traxx on Sept 11, 2012 16:16:43 GMT 1
nobody have idea then? :S
can be this part?
//lenzuv.xy=0.5-lenzuv.xy; //distfact=0.5-lenzuv.xy-0.5;
if (LenzParameters.x>0.00001) { for (int i=0; i<15; i++) { float2 distfact=(In.txcoord0.xy-0.5); lenzuv.xy=offset[i].x*distfact; lenzuv.xy*=pow(2.0*length(float2(distfact.x*ScreenSize.z,distfact.y)), offset[i].y); lenzuv.xy*=offset[i].z; lenzuv.xy=0.5-lenzuv.xy;//v1 // lenzuv.xy=In.txcoord0.xy-lenzuv.xy;//v2 float3 templenz=tex2D(SamplerBloom2, lenzuv.xy); templenz=templenz*factors[i]; distfact=(lenzuv.xy-0.5); distfact*=2.0; templenz*=saturate(1.0-dot(distfact,distfact));//limit by uv 0..1 // templenz=factors[i] * (1.0-dot(distfact,distfact)); float maxlenz=max(templenz.x, max(templenz.y, templenz.z)); /* float3 tempnor=(templenz.xyz/maxlenz); tempnor=pow(tempnor, tempF1.z); templenz.xyz=tempnor.xyz*maxlenz; */ float tempnor=(maxlenz/(1.0+maxlenz)); tempnor=pow(tempnor, LenzParameters.y); templenz.xyz*=tempnor;
// templenz*=maxlenz*maxlenz; lenz+=templenz; // lenz.xyz=max(lenz.xyz, templenz.xyz*0.99); } lenz.xyz*=0.25*LenzParameters.x;
bloom.xyz+=lenz.xyz; // bloom.w=dot(lenz.xyz, 0.333); bloom.w=max(lenz.xyz, max(lenz.y, lenz.z)); } return bloom; }
but i do not see any RGB parametters here....
|
|
traxx
Modding Rookie
Posts: 31
|
Post by traxx on Sept 26, 2012 20:47:28 GMT 1
bump!! don't know if I can bump on this forum, I don't think can be a problem if the people can ask for cracks and illegal stuff but anyway if this is wrong please delete, but I really need help guys!!
|
|