Skip to content

Instantly share code, notes, and snippets.

View xyztlp's full-sized avatar

dexter dev xyztlp

  • 23:32 (UTC +05:30)
View GitHub Profile
@xyztlp
xyztlp / index.jade
Created June 16, 2023 14:38 — forked from CodeMyUI/index.jade
Stagger Text Animation - GSAP
#demo
span.color-1 H
span.color-2 e
span.color-3 l
span.color-4 l
span.color-1 o
span.color-2 &nbsp
span.color-2 Y
span.color-3 o
@xyztlp
xyztlp / curved3Plane.js
Created June 11, 2023 07:46 — forked from dImrich/curved3Plane.js
Bend Three JS Plane Geometry With Bezier Curve
//Bend Three JS plane geometry with bezier curve
//Curved plane generation, bezier curve plane,
function bendPlaneGeometry(planeGeometry, centerBendZ)
{
var curve = new THREE.CubicBezierCurve3(
planeGeometry.vertices[0],
new THREE.Vector3(planeGeometry.parameters.width/2, 0, centerBendZ ),
new THREE.Vector3(planeGeometry.parameters.width/2, 0, centerBendZ ),
planeGeometry.vertices[(planeGeometry.vertices.length/2) - 1]
);
@xyztlp
xyztlp / Globe.js
Created June 2, 2023 13:24 — forked from marcopompili/Globe.js
THREE.js - Loading multiple textures
var Globe = function (radius, segments) {
THREE.Object3D.call(this);
this.name = "Globe";
var that = this;
// instantiate a loader
var loader = new THREE.TextureLoader();
@xyztlp
xyztlp / aurora.shader
Created January 31, 2023 19:36 — forked from yumayanagisawa/aurora.shader
Aurora Shader
//Code is converted to use in Unity(ShaderLab) from
//Auroras by nimitz 2017 (twitter: @stormoid)
//on Shadertoy(https://www.shadertoy.com/view/XtGGRt)
Shader "Aurora/aurora"
{
Properties
{
@xyztlp
xyztlp / GLSL-Noise.md
Created January 11, 2023 13:04 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}