18 lines
658 B
HLSL
18 lines
658 B
HLSL
/*
|
|
contributors: Patricio Gonzalez Vivo
|
|
description: power of 7
|
|
use: <float|float2|float3|float4> pow7(<float|float2|float3|float4> x)
|
|
license:
|
|
- Copyright (c) 2021 Patricio Gonzalez Vivo under Prosperity License - https://prosperitylicense.com/versions/3.0.0
|
|
- Copyright (c) 2021 Patricio Gonzalez Vivo under Patron License - https://lygia.xyz/license
|
|
*/
|
|
|
|
#ifndef FNC_POW2
|
|
#define FNC_POW2
|
|
|
|
float pow7(in float x) { return x * x * x * x * x * x * x; }
|
|
float2 pow7(in float2 x) { return x * x * x * x * x * x * x; }
|
|
float3 pow7(in float3 x) { return x * x * x * x * x * x * x; }
|
|
float4 pow7(in float4 x) { return x * x * x * x * x * x * x; }
|
|
|
|
#endif
|