Skip to content

Instantly share code, notes, and snippets.

View iamrobertsillo's full-sized avatar
🏠
Working from home

iamrobertsillo iamrobertsillo

🏠
Working from home
  • Lucca
View GitHub Profile
@iamrobertsillo
iamrobertsillo / GLSL-Math.md
Created August 5, 2021 07:22 — forked from patriciogonzalezvivo/GLSL-Math.md
GLSL Math functions

Trigonometry

const float PI = 3.1415926535897932384626433832795;
const float PI_2 = 1.57079632679489661923;
const float PI_4 = 0.785398163397448309616;

float PHI = (1.0+sqrtf(5.0))/2.0;
@iamrobertsillo
iamrobertsillo / GLSL-Noise.md
Created August 5, 2021 07:21 — 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);
}
From backend go into your root template (or in extension template where Powermail Extension is included).
In that, in Constants Editor Add below code:
plugin.tx_powermail {
view {
templateRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Templates/
partialRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Partials/
layoutRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Layouts/
}