Skip to content

Commit

Permalink
cap the bottom face of the cone
Browse files Browse the repository at this point in the history
  • Loading branch information
ademola-lou committed May 11, 2024
1 parent caedd1e commit 8cc61bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/Lights/simpleVolumetricSpotLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class SimpleVolumetricSpotLight {
}

private createSimpleVolumetricSpotLight(){
const spotLightCone = CreateCylinder("spotLightCone", {diameterTop: this._diameterTop, diameterBottom: this._diameterBottom, height: this._rayLength}, this._scene);
const spotLightCone = CreateCylinder("spotLightCone", {diameterTop: this._diameterTop, diameterBottom: this._diameterBottom, height: this._rayLength, cap: Mesh.CAP_END}, this._scene);
spotLightCone.rotate(Axis.X, -Math.PI / 2);
spotLightCone.translate(Axis.Y, -this._rayLength / 2); //pivot at the bottom
spotLightCone.bakeCurrentTransformIntoVertices();
Expand Down

0 comments on commit 8cc61bb

Please sign in to comment.