Package dev.cammiescorner.velvet.impl
Class ManagedSamplerUniformV2
java.lang.Object
dev.cammiescorner.velvet.impl.ManagedUniformBase
dev.cammiescorner.velvet.impl.ManagedSamplerUniformBase
dev.cammiescorner.velvet.impl.ManagedSamplerUniformV2
- All Implemented Interfaces:
SamplerUniform,SamplerUniformV2
public final class ManagedSamplerUniformV2
extends ManagedSamplerUniformBase
implements SamplerUniformV2
-
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(IntSupplier value) 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 jsonMethods inherited from class dev.cammiescorner.velvet.impl.ManagedSamplerUniformBase
findUniformTarget, findUniformTargets, setDirectMethods inherited from class dev.cammiescorner.velvet.impl.ManagedUniformBase
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.cammiescorner.velvet.api.managed.uniform.SamplerUniform
setDirect
-
Constructor Details
-
ManagedSamplerUniformV2
-
-
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- Specified by:
setin interfaceSamplerUniform- 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- Specified by:
setin interfaceSamplerUniform- 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- Specified by:
setin interfaceSamplerUniform- Parameters:
textureName- an opengl texture name
-
set
- Specified by:
setin classManagedSamplerUniformBase
-
set
Description copied from interface:SamplerUniformV2Sets the value of a sampler uniform declared in jsonThis method is only supported for
ManagedShaderEffect- Specified by:
setin interfaceSamplerUniformV2- Parameters:
value- a supplier for opengl texture names
-