|
| 1 | +<!-- |
| 2 | +======================================================================== |
| 3 | +Copyright 2024 Atomic Cartoons Inc. |
| 4 | +
|
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +======================================================================== |
| 17 | +--> |
| 18 | +<fragment_graph name="FallbackCPVShaderStandardSurface" ref="FallbackCPVShaderStandardSurface" class="FragmentGraph" version="1.0" feature_level="0" > |
| 19 | + <fragments> |
| 20 | + <fragment_ref name="mayaDefaultStandardSurface" ref="mayaDefaultStandardSurface" /> |
| 21 | + <fragment_ref name="FloatToFloat3" ref="FloatToFloat3" /> |
| 22 | + <fragment_ref name="Float4ToFloat3" ref="Float4ToFloat3" /> |
| 23 | + <fragment_ref name="Float4ToFloatW" ref="Float4ToFloatW" /> |
| 24 | + <fragment_ref name="mayaCPVPassing" ref="mayaCPVPassing" /> |
| 25 | + </fragments> |
| 26 | + <connections> |
| 27 | + <connect from="Float4ToFloat3.output" to="mayaDefaultStandardSurface.baseColor" name="color" /> |
| 28 | + <connect from="FloatToFloat3.output" to="mayaDefaultStandardSurface.opacity" name="opacity" /> |
| 29 | + <connect from="Float4ToFloatW.output" to="FloatToFloat3.input" name="alphavec" /> |
| 30 | + <connect from="mayaCPVPassing.C_4F" to="Float4ToFloat3.input" name="rgb" /> |
| 31 | + <connect from="mayaCPVPassing.C_4F" to="Float4ToFloatW.input" name="a" /> |
| 32 | + </connections> |
| 33 | + <properties> |
| 34 | + <float3 name="mayaTangentIn" ref="mayaDefaultStandardSurface.mayaTangentIn" semantic="tangent" flags="varyingInputParam" /> |
| 35 | + <float name="base" ref="mayaDefaultStandardSurface.base" /> |
| 36 | + <float name="diffuseRoughness" ref="mayaDefaultStandardSurface.diffuseRoughness" /> |
| 37 | + <float name="metalness" ref="mayaDefaultStandardSurface.metalness" /> |
| 38 | + <float name="specular" ref="mayaDefaultStandardSurface.specular" /> |
| 39 | + <float3 name="specularColor" ref="mayaDefaultStandardSurface.specularColor" /> |
| 40 | + <float name="specularIOR" ref="mayaDefaultStandardSurface.specularIOR" /> |
| 41 | + <float name="specularRoughness" ref="mayaDefaultStandardSurface.specularRoughness" /> |
| 42 | + <float name="specularAnisotropy" ref="mayaDefaultStandardSurface.specularAnisotropy" /> |
| 43 | + <float name="specularRotation" ref="mayaDefaultStandardSurface.specularRotation" /> |
| 44 | + <float name="transmission" ref="mayaDefaultStandardSurface.transmission" /> |
| 45 | + <float3 name="transmissionColor" ref="mayaDefaultStandardSurface.transmissionColor" /> |
| 46 | + <float name="subsurface" ref="mayaDefaultStandardSurface.subsurface" /> |
| 47 | + <float3 name="subsurfaceColor" ref="mayaDefaultStandardSurface.subsurfaceColor" /> |
| 48 | + <float name="coat" ref="mayaDefaultStandardSurface.coat" /> |
| 49 | + <float3 name="coatColor" ref="mayaDefaultStandardSurface.coatColor" /> |
| 50 | + <float name="coatIOR" ref="mayaDefaultStandardSurface.coatIOR" /> |
| 51 | + <float name="coatRoughness" ref="mayaDefaultStandardSurface.coatRoughness" /> |
| 52 | + <float name="coatAnisotropy" ref="mayaDefaultStandardSurface.coatAnisotropy" /> |
| 53 | + <float name="coatRotation" ref="mayaDefaultStandardSurface.coatRotation" /> |
| 54 | + <float name="coatAffectRoughness" ref="mayaDefaultStandardSurface.coatAffectRoughness" /> |
| 55 | + <float name="coatAffectColor" ref="mayaDefaultStandardSurface.coatAffectColor" /> |
| 56 | + <float name="sheen" ref="mayaDefaultStandardSurface.sheen" /> |
| 57 | + <float3 name="sheenColor" ref="mayaDefaultStandardSurface.sheenColor" /> |
| 58 | + <float name="sheenRoughness" ref="mayaDefaultStandardSurface.sheenRoughness" /> |
| 59 | + <float name="emission" ref="mayaDefaultStandardSurface.emission" /> |
| 60 | + <float3 name="emissionColor" ref="mayaDefaultStandardSurface.emissionColor" /> |
| 61 | + <float name="extraOpacity" ref="mayaDefaultStandardSurface.extraOpacity" /> |
| 62 | + <bool name="fogEnabled" ref="mayaDefaultStandardSurface.fogEnabled" /> |
| 63 | + <float3 name="Pw" ref="mayaDefaultStandardSurface.Pw" semantic="Pw" /> |
| 64 | + <float4x4 name="ViewProj" ref="mayaDefaultStandardSurface.ViewProj" semantic="viewprojection" /> |
| 65 | + <float name="fogStart" ref="mayaDefaultStandardSurface.fogStart" /> |
| 66 | + <float name="fogEnd" ref="mayaDefaultStandardSurface.fogEnd" /> |
| 67 | + <int name="fogMode" ref="mayaDefaultStandardSurface.fogMode" /> |
| 68 | + <float name="fogDensity" ref="mayaDefaultStandardSurface.fogDensity" /> |
| 69 | + <float4 name="fogColor" ref="mayaDefaultStandardSurface.fogColor" /> |
| 70 | + <float name="fogMultiplier" ref="mayaDefaultStandardSurface.fogMultiplier" /> |
| 71 | + <float3 name="IrradianceEnv" ref="mayaDefaultStandardSurface.IrradianceEnv" /> |
| 72 | + <float3 name="SpecularEnv" ref="mayaDefaultStandardSurface.SpecularEnv" /> |
| 73 | + <int name="selectionIndex" ref="mayaDefaultStandardSurface.selectionIndex" /> |
| 74 | + <struct name="light0" ref="mayaDefaultStandardSurface.light0" /> |
| 75 | + <struct name="light1" ref="mayaDefaultStandardSurface.light1" /> |
| 76 | + <struct name="light2" ref="mayaDefaultStandardSurface.light2" /> |
| 77 | + <struct name="light3" ref="mayaDefaultStandardSurface.light3" /> |
| 78 | + <struct name="light4" ref="mayaDefaultStandardSurface.light4" /> |
| 79 | + <struct name="light5" ref="mayaDefaultStandardSurface.light5" /> |
| 80 | + <struct name="light6" ref="mayaDefaultStandardSurface.light6" /> |
| 81 | + <struct name="light7" ref="mayaDefaultStandardSurface.light7" /> |
| 82 | + <struct name="light8" ref="mayaDefaultStandardSurface.light8" /> |
| 83 | + <struct name="light9" ref="mayaDefaultStandardSurface.light9" /> |
| 84 | + <struct name="light10" ref="mayaDefaultStandardSurface.light10" /> |
| 85 | + <struct name="light11" ref="mayaDefaultStandardSurface.light11" /> |
| 86 | + <struct name="light12" ref="mayaDefaultStandardSurface.light12" /> |
| 87 | + <struct name="light13" ref="mayaDefaultStandardSurface.light13" /> |
| 88 | + <struct name="light14" ref="mayaDefaultStandardSurface.light14" /> |
| 89 | + <struct name="light15" ref="mayaDefaultStandardSurface.light15" /> |
| 90 | + <float3 name="Nw" ref="mayaDefaultStandardSurface.N" flags="varyingInputParam" /> |
| 91 | + <float3 name="Vw" ref="mayaDefaultStandardSurface.V" flags="varyingInputParam" /> |
| 92 | + <string name="selector" ref="mayaDefaultStandardSurface.selector" /> |
| 93 | + <float3 name="ambientColor" ref="mayaDefaultStandardSurface.ambientColor" /> |
| 94 | + <float3 name="ambientIn" ref="mayaDefaultStandardSurface.input" /> |
| 95 | + <undefined name="GPUStage" ref="mayaDefaultStandardSurface.GPUStage" semantic="GPUStage" /> |
| 96 | + <float4 name="diffuseColor" ref="mayaCPVPassing.colorIn" flags="varyingInputParam" /> |
| 97 | + </properties> |
| 98 | + <values> |
| 99 | + <float name="base" value="1.000000" /> |
| 100 | + <float name="specular" value="1.000000" /> |
| 101 | + <float3 name="specularColor" value="1.000000,1.000000,1.000000" /> |
| 102 | + <float name="specularIOR" value="1.500000" /> |
| 103 | + <float name="specularRoughness" value="0.500000" /> |
| 104 | + <float3 name="transmissionColor" value="1.000000,1.000000,1.000000" /> |
| 105 | + <float3 name="subsurfaceColor" value="1.000000,1.000000,1.000000" /> |
| 106 | + <float3 name="coatColor" value="1.000000,1.000000,1.000000" /> |
| 107 | + <float name="coatIOR" value="1.500000" /> |
| 108 | + <float name="coatRoughness" value="0.100000" /> |
| 109 | + <float3 name="sheenColor" value="1.000000,1.000000,1.000000" /> |
| 110 | + <float name="sheenRoughness" value="0.300000" /> |
| 111 | + <float3 name="emissionColor" value="1.000000,1.000000,1.000000" /> |
| 112 | + <float name="extraOpacity" value="1.000000" /> |
| 113 | + <bool name="fogEnabled" value="false" /> |
| 114 | + <float name="fogStart" value="0.000000" /> |
| 115 | + <float name="fogEnd" value="92.000000" /> |
| 116 | + <int name="fogMode" value="0" /> |
| 117 | + <float name="fogDensity" value="0.100000" /> |
| 118 | + <float4 name="fogColor" value="0.500000,0.500000,0.500000,1.000000" /> |
| 119 | + <float name="fogMultiplier" value="1.000000" /> |
| 120 | + <float3 name="IrradianceEnv" value="0.000000,0.000000,0.000000" /> |
| 121 | + <float3 name="SpecularEnv" value="0.000000,0.000000,0.000000" /> |
| 122 | + <int name="selectionIndex" value="0" /> |
| 123 | + <string name="selector" value="mayaLightSelector16" /> |
| 124 | + <float3 name="ambientColor" value="0.000000,0.000000,0.000000" /> |
| 125 | + <float4 name="diffuseColor" value="0.18,0.18,0.18,1.0" /> |
| 126 | + </values> |
| 127 | + <outputs> |
| 128 | + <float4 name="outSurfaceFinal" ref="mayaDefaultStandardSurface.outSurfaceFinal" /> |
| 129 | + </outputs> |
| 130 | +</fragment_graph> |
0 commit comments