Package dev.cammiescorner.velvet.impl
Class ManagedSamplerUniformV1
java.lang.Object
dev.cammiescorner.velvet.impl.ManagedUniformBase
dev.cammiescorner.velvet.impl.ManagedSamplerUniformBase
dev.cammiescorner.velvet.impl.ManagedSamplerUniformV1
- All Implemented Interfaces:
SamplerUniform
-
Field Summary
Fields inherited from class dev.cammiescorner.velvet.impl.ManagedSamplerUniformBase
cachedValue, locations, targetsFields inherited from class dev.cammiescorner.velvet.impl.ManagedUniformBase
name -
Constructor Summary
Constructors -
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 jsonprotected voidvoidset(net.minecraft.client.renderer.texture.AbstractTexture texture) Sets the value of a sampler uniform declared in jsonMethods inherited from class dev.cammiescorner.velvet.impl.ManagedSamplerUniformBase
findUniformTarget, findUniformTargets, setDirectMethods inherited from class dev.cammiescorner.velvet.impl.ManagedUniformBase
getName
-
Constructor Details
-
ManagedSamplerUniformV1
-
-
Method Details
-
set
public void set(net.minecraft.client.renderer.texture.AbstractTexture texture) Description copied from interface:SamplerUniformSets the value of a sampler uniform declared in json- Parameters:
texture- a texture object
-
set
public void set(com.mojang.blaze3d.pipeline.RenderTarget textureFbo) Description copied from interface:SamplerUniformSets the value of a sampler uniform declared in json- Parameters:
textureFbo- a render target which main texture will be used
-
set
public void set(int textureName) Description copied from interface:SamplerUniformSets the value of a sampler uniform declared in json- Parameters:
textureName- an opengl texture name
-
set
- Specified by:
setin classManagedSamplerUniformBase
-