Interface SamplerUniform
- All Known Subinterfaces:
SamplerUniformV2
- All Known Implementing Classes:
ManagedSamplerUniformBase,ManagedSamplerUniformV1,ManagedSamplerUniformV2
@API(status=MAINTAINED)
public interface SamplerUniform
-
Method Summary
Modifier and TypeMethodDescriptionvoidset(int textureName) Sets the value of a sampler uniform declared in jsonvoidset(com.mojang.blaze3d.pipeline.RenderTarget textureFbo) Sets the value of a sampler uniform declared in jsonvoidset(net.minecraft.client.renderer.texture.AbstractTexture texture) Sets the value of a sampler uniform declared in jsonvoidsetDirect(int activeTexture) Sets the value of a sampler uniform declared in json using the Opengl texture slot id (between 0 and 30).
-
Method Details
-
setDirect
@API(status=MAINTAINED, since="1.4.0") void setDirect(int activeTexture) Sets the value of a sampler uniform declared in json using the Opengl texture slot id (between 0 and 30).- Parameters:
activeTexture- the active texture id to be used by the sampler- See Also:
-
set
@API(status=MAINTAINED, since="1.4.0") void set(net.minecraft.client.renderer.texture.AbstractTexture texture) Sets the value of a sampler uniform declared in json- Parameters:
texture- a texture object
-
set
@API(status=MAINTAINED, since="1.4.0") void set(com.mojang.blaze3d.pipeline.RenderTarget textureFbo) Sets the value of a sampler uniform declared in json- Parameters:
textureFbo- a render target which main texture will be used
-
set
@API(status=MAINTAINED, since="1.4.0") void set(int textureName) Sets the value of a sampler uniform declared in json- Parameters:
textureName- an opengl texture name
-