Class Sphere
java.lang.Object
foundry.veil.api.quasar.emitters.shape.Sphere
- All Implemented Interfaces:
EmitterShape
-
Field Summary
Fields inherited from interface foundry.veil.api.quasar.emitters.shape.EmitterShape
CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3d
getPoint
(net.minecraft.util.RandomSource randomSource, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation, org.joml.Vector3dc position, boolean fromSurface) static org.joml.Vector3f
parametricSphere
(float u, float v, float r) void
renderShape
(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation)
-
Constructor Details
-
Sphere
public Sphere()
-
-
Method Details
-
getPoint
public org.joml.Vector3d getPoint(net.minecraft.util.RandomSource randomSource, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation, org.joml.Vector3dc position, boolean fromSurface) - Specified by:
getPoint
in interfaceEmitterShape
-
renderShape
public void renderShape(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation) - Specified by:
renderShape
in interfaceEmitterShape
-
parametricSphere
public static org.joml.Vector3f parametricSphere(float u, float v, float r)
-