-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ymesh/meShaderEd
- Loading branch information
Showing
28 changed files
with
131 additions
and
18 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion
2
lib/nodes/RSL/ColorCorrect/gradeCC.xml → ...es/RSL/ColorCorrect/grade/gradeFromCC.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/nodes/RSL/ColorCorrect/gradeF.xml → ...des/RSL/ColorCorrect/grade/gradeFromF.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/nodes/RSL/ColorCorrect/gradeFC.xml → ...es/RSL/ColorCorrect/grade/gradeFromFC.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
|
||
<node name="gradeToF" label="gradeToF" author="DRL"> | ||
<help>Remap float value from min and max to [0-1] range.</help> | ||
<input> | ||
<property name="input" type="float" default="0"/> | ||
<property name="min" type="float" default="0" detail="uniform" | ||
subtype="slider" | ||
range="0 1 .01"/> | ||
<property name="max" type="float" default="1" detail="uniform" | ||
subtype="slider" | ||
range="0 1 .01"/> | ||
</input> | ||
<output> | ||
<property name="result" type="float"/> | ||
</output> | ||
<code><![CDATA[ | ||
$(result) = ( $(input) - $(min) ) / ( $(max) - $(min) ); | ||
]]> | ||
</code> | ||
</node> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
|
||
<node name="surface_noOiAffect" label="surf" type="surface" author="mesh"> | ||
<help>Basic surface shader allowing to set exact Ci, not affected by Oi.</help> | ||
<input> | ||
<property name="Ci" type="color" default="color(0.0, 0.0, 0.0)" /> | ||
<property name="Oi" type="color" default="color(1.0, 1.0, 1.0)" /> | ||
</input> | ||
<output> | ||
<property name="surface" type="rib" default="Surface "${NODELABEL}"" /> | ||
</output> | ||
<code><![CDATA[ | ||
#define SURFACE_SHADER ${INSTANCENAME} | ||
surface ${INSTANCENAME} ( | ||
${PARAMS} | ||
) | ||
{ | ||
/* CODE BEGIN ${INSTANCENAME} */ | ||
Ci = $(Ci); | ||
Oi = $(Oi); | ||
/* CODE END ${INSTANCENAME} */ | ||
} | ||
]]> | ||
</code> | ||
</node> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0"?> | ||
|
||
<node name="NormalMapSpace" label="nmS" author="DRL"> | ||
<help>Normalmap texture in custom space.</help> | ||
|
||
<input> | ||
<property name="N" type="normal" default="normal (0, 1, 0)"> | ||
<help>Normal vector.</help> | ||
</property> | ||
<property name="sourceSpace" type="string" default="current" detail="uniform"> | ||
<help>The space that incoming N vector is in.</help> | ||
</property> | ||
<property name="bakeSpace" type="string" default="object" detail="uniform"> | ||
<help>The space to calculate normal map for.</help> | ||
</property> | ||
</input> | ||
|
||
<output> | ||
<property detail="varying" name="NM" type="color"/> | ||
</output> | ||
|
||
<code><![CDATA[ | ||
// code begin - NormalMapSpace | ||
$(NM) = color( normalize( transform( $(sourceSpace), $(bakeSpace), $(N) ))); | ||
$(NM) = ( $(NM) + color(1) ) / 2; // grade NM to [0-1] color range | ||
$(NM) = clamp( $(NM), color(0), color(1) ); | ||
// code end - NormalMapSpace | ||
]]> | ||
</code> | ||
</node> |