public BasicParticleRenderTarget(int width, int height) : base(false, false, width, height) { SetOutput(0, new TextureSlotParam(TextureTarget.Texture2D, PixelInternalFormat.Rgba32f, PixelFormat.Rgba, PixelType.Float, false, TextureParameter.Create(TextureParameterName.TextureMagFilter, TextureMagFilter.Nearest), TextureParameter.Create(TextureParameterName.TextureMinFilter, TextureMinFilter.Nearest), TextureParameter.Create(TextureParameterName.TextureWrapS, TextureWrapMode.Repeat), TextureParameter.Create(TextureParameterName.TextureWrapT, TextureWrapMode.Repeat) )); }
public ParticleNode() : base(false, true) { ChildComponent = new ParticleRenderer(); SetOutput(0, new TextureSlotParam(TextureTarget.Texture2D, PixelInternalFormat.Rgba16f, PixelFormat.Rgba, PixelType.HalfFloat, false, TextureParameter.Create(TextureParameterName.TextureMagFilter, TextureMagFilter.Linear), TextureParameter.Create(TextureParameterName.TextureMinFilter, TextureMinFilter.Linear), TextureParameter.Create(TextureParameterName.TextureWrapS, TextureWrapMode.ClampToEdge), TextureParameter.Create(TextureParameterName.TextureWrapT, TextureWrapMode.ClampToEdge) )); _output.Add("tex", new GraphNodeTexturePort() { Target = TextureTarget.Texture2D, Format = PixelFormat.Rgba, Name = "tex" }); }