Class WorldGradient
java.lang.Object
com.render.api.world.WorldGradient
Immutable vertex-sampled local-space linear or radial gradient.
Radial paint varies only when mesh vertices have different distances from its
center; a centered sphere surface has a constant radius, while a disc contains
concentric radial bands.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3end()static WorldGradientlinear(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldGradient.Stop... stops) static WorldGradientradial(net.minecraft.world.phys.Vec3 center, float radius, WorldGradient.Stop... stops) floatradius()sample(net.minecraft.world.phys.Vec3 localPosition) net.minecraft.world.phys.Vec3start()stops()type()
-
Method Details
-
linear
public static WorldGradient linear(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldGradient.Stop... stops) -
radial
public static WorldGradient radial(net.minecraft.world.phys.Vec3 center, float radius, WorldGradient.Stop... stops) -
type
-
start
public net.minecraft.world.phys.Vec3 start() -
end
public net.minecraft.world.phys.Vec3 end() -
radius
public float radius() -
stops
-
sample
-