22 lines
2.0 KiB
Plaintext
22 lines
2.0 KiB
Plaintext
shader O_REDAHS_OITAR_GNICAF_TOOR_EBUC_X_SUNIM_1_OT_LACIRTEMYS_1_MORF_DEREWOL_FO_EGNAR_EULAV_1_SUNIM_IP_GOL_SUNIM_1_O_1_MINUS_LOG_PI_MINUS_1_VALUE_RANGE_OF_LOWERED_FROM_1_SYMETRICAL_TO_1_MINUS_X_CUBE_ROOT_FACING_RATIO_SHADER_O
|
|
(
|
|
float O_REDAHS_TNEIDARG_RAENIL_O_LINEAR_GRADIENT_SHADER_O = ( 1. - sqrt( 1.- pow( dot(N,I) , 2. ) ) ),
|
|
float O_TNEMTSUJDA_SENTHGIRB_TOOR_EBUC_LACIRTEMYS_O_SYMETRICAL_CUBE_ROOT_BRIGHTNES_ADJUSTMENT_O = 0.,
|
|
float O_SENTHGIRB_TOOR_EBUC_LACIRTEMYS_O_SYMETRICAL_CUBE_ROOT_BRIGHTNES_O=log( (4.*atan(1.))-(1.*(1.-O_TNEMTSUJDA_SENTHGIRB_TOOR_EBUC_LACIRTEMYS_O_SYMETRICAL_CUBE_ROOT_BRIGHTNES_ADJUSTMENT_O+0.)) ),
|
|
output float O_REDAHS_O_SHADER_O = 0.0
|
|
)
|
|
|
|
{
|
|
O_REDAHS_O_SHADER_O =
|
|
|
|
(
|
|
pow( (1.- pow(-(O_REDAHS_TNEIDARG_RAENIL_O_LINEAR_GRADIENT_SHADER_O-1.), 3. ) ) , pow(3.,-1.) )
|
|
*
|
|
(1.-O_SENTHGIRB_TOOR_EBUC_LACIRTEMYS_O_SYMETRICAL_CUBE_ROOT_BRIGHTNES_O)
|
|
+1.
|
|
-
|
|
(1.-O_SENTHGIRB_TOOR_EBUC_LACIRTEMYS_O_SYMETRICAL_CUBE_ROOT_BRIGHTNES_O)
|
|
)
|
|
|
|
;
|
|
} |