public GBuffer SetSlot(int slot, TextureSlotParam texparam) { if (slot < 0 || slot >= MAXSLOTS) { throw new InvalidOperationException("GBuffer.SetSlotTextureParams: slot out of range."); } this.TextureSlots[slot].Enabled = true; this.TextureSlots[slot].Slot = slot; this.TextureSlots[slot].TextureParam = texparam; log.Trace("GBuffer.SetSlot {0} = {1}", slot, texparam); return(this); }
public void SetOutput(int index, TextureSlotParam texparam) { LogTrace($"{index} -> {texparam}"); OutputBuffer.SetSlot(index, texparam); }