Polish ChromaticBloomEffect
This commit is contained in:
parent
02aee8bbf4
commit
8d48389fb0
|
|
@ -97,8 +97,6 @@ namespace Rokojori
|
||||||
CEG_ScreenColorTexure screenColorTexture;
|
CEG_ScreenColorTexure screenColorTexture;
|
||||||
CEG_BufferTexture bufferTexture;
|
CEG_BufferTexture bufferTexture;
|
||||||
|
|
||||||
RG_Resize downScale;
|
|
||||||
|
|
||||||
RG_ExtractGlow extractGlow;
|
RG_ExtractGlow extractGlow;
|
||||||
|
|
||||||
int maxBlooms = 10;
|
int maxBlooms = 10;
|
||||||
|
|
@ -112,16 +110,8 @@ namespace Rokojori
|
||||||
screenColorTexture = new CEG_ScreenColorTexure( graph );
|
screenColorTexture = new CEG_ScreenColorTexure( graph );
|
||||||
bufferTexture = CEG_BufferTexture.ScreenSize( graph, Vector2.One / (float) _downSampling );
|
bufferTexture = CEG_BufferTexture.ScreenSize( graph, Vector2.One / (float) _downSampling );
|
||||||
|
|
||||||
downScale = new RG_Resize( graph );
|
|
||||||
extractGlow = new RG_ExtractGlow( graph );
|
extractGlow = new RG_ExtractGlow( graph );
|
||||||
|
|
||||||
// bloom = new RG_ChromaticBloom( graph );
|
|
||||||
// bloom2 = new RG_ChromaticBloom( graph );
|
|
||||||
// bloom3 = new RG_ChromaticBloom( graph );
|
|
||||||
// bloom4 = new RG_ChromaticBloom( graph );
|
|
||||||
|
|
||||||
// _blooms = [ bloom, bloom2, bloom3, bloom4 ];
|
|
||||||
|
|
||||||
_blooms = new List<RG_ChromaticBloom>();
|
_blooms = new List<RG_ChromaticBloom>();
|
||||||
|
|
||||||
for ( int i = 0; i < maxBlooms; i++ )
|
for ( int i = 0; i < maxBlooms; i++ )
|
||||||
|
|
@ -132,9 +122,6 @@ namespace Rokojori
|
||||||
|
|
||||||
graph.InitializeNodes();
|
graph.InitializeNodes();
|
||||||
|
|
||||||
downScale.SetTextureSlotInputs( screenColorTexture, bufferTexture );
|
|
||||||
downScale.input.UseSampler();
|
|
||||||
|
|
||||||
extractGlow.SetTextureSlotInputs( screenColorTexture, bufferTexture );
|
extractGlow.SetTextureSlotInputs( screenColorTexture, bufferTexture );
|
||||||
extractGlow.input.UseSampler();
|
extractGlow.input.UseSampler();
|
||||||
|
|
||||||
|
|
@ -164,8 +151,6 @@ namespace Rokojori
|
||||||
( bufferTexture.GetCreator() as CEG_TextureCreator_ScreenSize ).scale = Vector2.One / (float) _downSampling;
|
( bufferTexture.GetCreator() as CEG_TextureCreator_ScreenSize ).scale = Vector2.One / (float) _downSampling;
|
||||||
}
|
}
|
||||||
|
|
||||||
downScale.SetCustomComputeSize( context.internalSize / _downSampling );
|
|
||||||
|
|
||||||
extractGlow.SetCustomComputeSize( context.internalSize / _downSampling );
|
extractGlow.SetCustomComputeSize( context.internalSize / _downSampling );
|
||||||
|
|
||||||
extractGlow.constants.Set(
|
extractGlow.constants.Set(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue