Skip to content

Commit

Permalink
Merge pull request #6 from Xiexe/development
Browse files Browse the repository at this point in the history
Merge AO and Defaults changes
  • Loading branch information
Xiexe authored Aug 11, 2018
2 parents 55dbb50 + 04bd26f commit 043daec
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions StandardLighting PBR Dithered/StandardLighting.shader
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Shader "Xiexe/StandardLightingDithered"
[HDR]_EmissionColor("Emission Color", Color) = (0,0,0,1)

// Dithering
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.01
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.001

// Specular Lightmap Occlusion
_SpecularLightmapOcclusion("Specular Lightmap Occlusion Scale", Range(0,1)) = 1
Expand Down Expand Up @@ -68,4 +68,4 @@ Shader "Xiexe/StandardLightingDithered"
ENDCG
}
Fallback "Diffuse"
}
}
4 changes: 2 additions & 2 deletions StandardLighting PBR Dithered/StandardLightingFade-1.shader
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Shader "Xiexe/StandardLightingDitheredFade-1"
[HDR]_EmissionColor("Emission Color", Color) = (0,0,0,1)

// Dithering
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.01
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.001

// Specular Lightmap Occlusion
_SpecularLightmapOcclusion("Specular Lightmap Occlusion Scale", Range(0,1)) = 1
Expand Down Expand Up @@ -143,4 +143,4 @@ Shader "Xiexe/StandardLightingDitheredFade-1"
}
}
Fallback "Diffuse"
}
}
4 changes: 2 additions & 2 deletions StandardLighting PBR Dithered/StandardLightingFade.shader
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Shader "Xiexe/StandardLightingDitheredFade"
[HDR]_EmissionColor("Emission Color", Color) = (0,0,0,1)

// Dithering
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.01
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.001

// Specular Lightmap Occlusion
_SpecularLightmapOcclusion("Specular Lightmap Occlusion Scale", Range(0,1)) = 1
Expand Down Expand Up @@ -143,4 +143,4 @@ Shader "Xiexe/StandardLightingDitheredFade"
}
}
Fallback "Diffuse"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void surf(Input i , inout SurfaceOutputDitheredStandard o)
// Ambient Occlusion
float2 uv_OcclusionMap = i.uv_texcoord * _OcclusionMap_ST.xy + _OcclusionMap_ST.zw;
float4 occlusion = tex2D(_OcclusionMap, uv_OcclusionMap);
o.Occlusion = occlusion;
o.Occlusion = lerp(1.0, occlusion, _OcclusionStrength);

// Compute Dithering
o.Dithering = (ditherNoiseFuncHigh(i.uv_texcoord.xy) - 0.5) * 2 * _NoiseScale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Shader "Xiexe/StandardLightingDitheredTransparent-1"
[HDR]_EmissionColor("Emission Color", Color) = (0,0,0,1)

// Dithering
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.01
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.001

// Specular Lightmap Occlusion
_SpecularLightmapOcclusion("Specular Lightmap Occlusion Scale", Range(0,1)) = 1
Expand Down Expand Up @@ -143,4 +143,4 @@ Shader "Xiexe/StandardLightingDitheredTransparent-1"
}
}
Fallback "Diffuse"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Shader "Xiexe/StandardLightingDitheredTransparent"
[HDR]_EmissionColor("Emission Color", Color) = (0,0,0,1)

// Dithering
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.01
_NoiseScale("Dithering Scale", Range(0,0.2)) = 0.001

// Specular Lightmap Occlusion
_SpecularLightmapOcclusion("Specular Lightmap Occlusion Scale", Range(0,1)) = 1
Expand Down Expand Up @@ -143,4 +143,4 @@ Shader "Xiexe/StandardLightingDitheredTransparent"
}
}
Fallback "Diffuse"
}
}

0 comments on commit 043daec

Please sign in to comment.