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