Merge pull request #1210 from sanikoyes/Pr-shader-refract
Pr-shader-add-missing-function-refract
This commit is contained in:
commit
a327eee762
2 changed files with 2 additions and 0 deletions
|
@ -690,6 +690,7 @@ ShaderCompilerGLES2::ShaderCompilerGLES2() {
|
|||
replace_table["cross" ]="cross";
|
||||
replace_table["normalize"]= "normalize";
|
||||
replace_table["reflect"]= "reflect";
|
||||
replace_table["refract"]= "refract";
|
||||
replace_table["tex"]= "tex";
|
||||
replace_table["texa"]= "texa";
|
||||
replace_table["tex2"]= "tex2";
|
||||
|
|
|
@ -900,6 +900,7 @@ const ShaderLanguage::IntrinsicFuncDef ShaderLanguage::intrinsic_func_defs[]={
|
|||
{"normalize",TYPE_VEC3,{TYPE_VEC3,TYPE_VOID}},
|
||||
{"normalize",TYPE_VEC4,{TYPE_VEC4,TYPE_VOID}},
|
||||
{"reflect",TYPE_VEC3,{TYPE_VEC3,TYPE_VEC3,TYPE_VOID}},
|
||||
{"refract",TYPE_VEC3,{TYPE_VEC3,TYPE_VEC3,TYPE_FLOAT,TYPE_VOID}},
|
||||
//intrinsics - texture
|
||||
{"tex",TYPE_VEC4,{TYPE_TEXTURE,TYPE_VEC2,TYPE_VOID}},
|
||||
{"texcube",TYPE_VEC4,{TYPE_CUBEMAP,TYPE_VEC3,TYPE_VOID}},
|
||||
|
|
Loading…
Reference in a new issue