Call for contributions - material script
Posted: Fri Apr 05, 2019 9:34 pm
Hello everyone
the 5.70 integrates a new function: MaterialTextureAliases( material, texture1id=0, texture2id=0, texture3id=0, texture4id=0)
texture aliases allow to use different textures with the same material script.
this function substitutes the texture aliases of a material script with PureBasic textures.
In the script material, references to textures:
"texture mytexture.jpg"
must be replaced by
"texture_alias texture1" (or texture2, texture3, texture4)
(the next version will also include an instruction to define variables in the script)
my goal is to make a collection of material scripts (directx and opengl compatible) containing the main effects
- normal mapping
- offset mapping
- refraction
- reflection (on a heightmap)
- fresnel
...
and include it in purebasic
if there are experts who want to help me, I'll gladly accept.
I had already made a request (with an example of normal mapping) :
viewtopic.php?f=36&t=72132
But without success. I'm taking my chance again.
the 5.70 integrates a new function: MaterialTextureAliases( material, texture1id=0, texture2id=0, texture3id=0, texture4id=0)
texture aliases allow to use different textures with the same material script.
this function substitutes the texture aliases of a material script with PureBasic textures.
In the script material, references to textures:
"texture mytexture.jpg"
must be replaced by
"texture_alias texture1" (or texture2, texture3, texture4)
(the next version will also include an instruction to define variables in the script)
my goal is to make a collection of material scripts (directx and opengl compatible) containing the main effects
- normal mapping
- offset mapping
- refraction
- reflection (on a heightmap)
- fresnel
...
and include it in purebasic
if there are experts who want to help me, I'll gladly accept.
I had already made a request (with an example of normal mapping) :
viewtopic.php?f=36&t=72132
But without success. I'm taking my chance again.