Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 320 es
- #define INTERFACE_LOCATION(Pos) layout(location=Pos)
- #define INTERFACE_BLOCK(Pos, Interp, Modifiers, Semantic, PreType, PostType) layout(location=Pos) Modifiers Semantic { PreType PostType; }
- #define HLSLCC_DX11ClipSpace 1
- // end extensions
- layout(std140) uniform pb0
- {
- #define View_TranslatedWorldToClip View_TranslatedWorldToClippb0
- highp mat4 View_TranslatedWorldToClip;
- #define View_WorldToClip View_WorldToClippb0
- highp mat4 View_WorldToClip;
- #define View_TranslatedWorldToView View_TranslatedWorldToViewpb0
- highp mat4 View_TranslatedWorldToView;
- #define View_ViewToTranslatedWorld View_ViewToTranslatedWorldpb0
- highp mat4 View_ViewToTranslatedWorld;
- #define View_TranslatedWorldToCameraView View_TranslatedWorldToCameraViewpb0
- highp mat4 View_TranslatedWorldToCameraView;
- #define View_CameraViewToTranslatedWorld View_CameraViewToTranslatedWorldpb0
- highp mat4 View_CameraViewToTranslatedWorld;
- #define View_ViewToClip View_ViewToClippb0
- highp mat4 View_ViewToClip;
- #define View_ViewToClipNoAA View_ViewToClipNoAApb0
- highp mat4 View_ViewToClipNoAA;
- #define View_ClipToView View_ClipToViewpb0
- highp mat4 View_ClipToView;
- #define View_ClipToTranslatedWorld View_ClipToTranslatedWorldpb0
- highp mat4 View_ClipToTranslatedWorld;
- #define View_SVPositionToTranslatedWorld View_SVPositionToTranslatedWorldpb0
- highp mat4 View_SVPositionToTranslatedWorld;
- #define View_ScreenToWorld View_ScreenToWorldpb0
- highp mat4 View_ScreenToWorld;
- #define View_ScreenToTranslatedWorld View_ScreenToTranslatedWorldpb0
- highp mat4 View_ScreenToTranslatedWorld;
- #define View_ViewForward View_ViewForwardpb0
- highp vec3 View_ViewForward;
- #define PrePadding_View_844 PrePadding_View_844pb0
- highp float PrePadding_View_844;
- #define View_ViewUp View_ViewUppb0
- highp vec3 View_ViewUp;
- #define PrePadding_View_860 PrePadding_View_860pb0
- highp float PrePadding_View_860;
- #define View_ViewRight View_ViewRightpb0
- highp vec3 View_ViewRight;
- #define PrePadding_View_876 PrePadding_View_876pb0
- highp float PrePadding_View_876;
- #define View_HMDViewNoRollUp View_HMDViewNoRollUppb0
- highp vec3 View_HMDViewNoRollUp;
- #define PrePadding_View_892 PrePadding_View_892pb0
- highp float PrePadding_View_892;
- #define View_HMDViewNoRollRight View_HMDViewNoRollRightpb0
- highp vec3 View_HMDViewNoRollRight;
- #define PrePadding_View_908 PrePadding_View_908pb0
- highp float PrePadding_View_908;
- #define View_InvDeviceZToWorldZTransform View_InvDeviceZToWorldZTransformpb0
- highp vec4 View_InvDeviceZToWorldZTransform;
- #define View_ScreenPositionScaleBias View_ScreenPositionScaleBiaspb0
- highp vec4 View_ScreenPositionScaleBias;
- #define View_WorldCameraOrigin View_WorldCameraOriginpb0
- highp vec3 View_WorldCameraOrigin;
- #define PrePadding_View_956 PrePadding_View_956pb0
- highp float PrePadding_View_956;
- #define View_TranslatedWorldCameraOrigin View_TranslatedWorldCameraOriginpb0
- highp vec3 View_TranslatedWorldCameraOrigin;
- #define PrePadding_View_972 PrePadding_View_972pb0
- highp float PrePadding_View_972;
- #define View_WorldViewOrigin View_WorldViewOriginpb0
- highp vec3 View_WorldViewOrigin;
- #define PrePadding_View_988 PrePadding_View_988pb0
- highp float PrePadding_View_988;
- #define View_PreViewTranslation View_PreViewTranslationpb0
- highp vec3 View_PreViewTranslation;
- #define PrePadding_View_1004 PrePadding_View_1004pb0
- highp float PrePadding_View_1004;
- #define View_PrevProjection View_PrevProjectionpb0
- highp mat4 View_PrevProjection;
- #define View_PrevViewProj View_PrevViewProjpb0
- highp mat4 View_PrevViewProj;
- #define View_PrevViewRotationProj View_PrevViewRotationProjpb0
- highp mat4 View_PrevViewRotationProj;
- #define View_PrevViewToClip View_PrevViewToClippb0
- highp mat4 View_PrevViewToClip;
- #define View_PrevClipToView View_PrevClipToViewpb0
- highp mat4 View_PrevClipToView;
- #define View_PrevTranslatedWorldToClip View_PrevTranslatedWorldToClippb0
- highp mat4 View_PrevTranslatedWorldToClip;
- #define View_PrevTranslatedWorldToView View_PrevTranslatedWorldToViewpb0
- highp mat4 View_PrevTranslatedWorldToView;
- #define View_PrevViewToTranslatedWorld View_PrevViewToTranslatedWorldpb0
- highp mat4 View_PrevViewToTranslatedWorld;
- #define View_PrevTranslatedWorldToCameraView View_PrevTranslatedWorldToCameraViewpb0
- highp mat4 View_PrevTranslatedWorldToCameraView;
- #define View_PrevCameraViewToTranslatedWorld View_PrevCameraViewToTranslatedWorldpb0
- highp mat4 View_PrevCameraViewToTranslatedWorld;
- #define View_PrevWorldCameraOrigin View_PrevWorldCameraOriginpb0
- highp vec3 View_PrevWorldCameraOrigin;
- #define PrePadding_View_1660 PrePadding_View_1660pb0
- highp float PrePadding_View_1660;
- #define View_PrevWorldViewOrigin View_PrevWorldViewOriginpb0
- highp vec3 View_PrevWorldViewOrigin;
- #define PrePadding_View_1676 PrePadding_View_1676pb0
- highp float PrePadding_View_1676;
- #define View_PrevPreViewTranslation View_PrevPreViewTranslationpb0
- highp vec3 View_PrevPreViewTranslation;
- #define PrePadding_View_1692 PrePadding_View_1692pb0
- highp float PrePadding_View_1692;
- #define View_PrevInvViewProj View_PrevInvViewProjpb0
- highp mat4 View_PrevInvViewProj;
- #define View_PrevScreenToTranslatedWorld View_PrevScreenToTranslatedWorldpb0
- highp mat4 View_PrevScreenToTranslatedWorld;
- #define View_ClipToPrevClip View_ClipToPrevClippb0
- highp mat4 View_ClipToPrevClip;
- #define View_TemporalAAJitter View_TemporalAAJitterpb0
- highp vec4 View_TemporalAAJitter;
- #define View_GlobalClippingPlane View_GlobalClippingPlanepb0
- highp vec4 View_GlobalClippingPlane;
- #define View_FieldOfViewWideAngles View_FieldOfViewWideAnglespb0
- highp vec2 View_FieldOfViewWideAngles;
- #define View_PrevFieldOfViewWideAngles View_PrevFieldOfViewWideAnglespb0
- highp vec2 View_PrevFieldOfViewWideAngles;
- #define View_ViewRectMin View_ViewRectMinpb0
- highp vec4 View_ViewRectMin;
- #define View_ViewSizeAndInvSize View_ViewSizeAndInvSizepb0
- highp vec4 View_ViewSizeAndInvSize;
- #define View_BufferSizeAndInvSize View_BufferSizeAndInvSizepb0
- highp vec4 View_BufferSizeAndInvSize;
- #define View_BufferBilinearUVMinMax View_BufferBilinearUVMinMaxpb0
- highp vec4 View_BufferBilinearUVMinMax;
- #define View_NumSceneColorMSAASamples View_NumSceneColorMSAASamplespb0
- highp int View_NumSceneColorMSAASamples;
- #define View_PreExposure View_PreExposurepb0
- highp float View_PreExposure;
- #define View_OneOverPreExposure View_OneOverPreExposurepb0
- highp float View_OneOverPreExposure;
- #define PrePadding_View_2012 PrePadding_View_2012pb0
- highp float PrePadding_View_2012;
- #define View_DiffuseOverrideParameter View_DiffuseOverrideParameterpb0
- highp vec4 View_DiffuseOverrideParameter;
- #define View_SpecularOverrideParameter View_SpecularOverrideParameterpb0
- highp vec4 View_SpecularOverrideParameter;
- #define View_NormalOverrideParameter View_NormalOverrideParameterpb0
- highp vec4 View_NormalOverrideParameter;
- #define View_RoughnessOverrideParameter View_RoughnessOverrideParameterpb0
- highp vec2 View_RoughnessOverrideParameter;
- #define View_PrevFrameGameTime View_PrevFrameGameTimepb0
- highp float View_PrevFrameGameTime;
- #define View_PrevFrameRealTime View_PrevFrameRealTimepb0
- highp float View_PrevFrameRealTime;
- #define View_OutOfBoundsMask View_OutOfBoundsMaskpb0
- highp float View_OutOfBoundsMask;
- #define PrePadding_View_2084 PrePadding_View_2084pb0
- highp float PrePadding_View_2084;
- #define PrePadding_View_2088 PrePadding_View_2088pb0
- highp float PrePadding_View_2088;
- #define PrePadding_View_2092 PrePadding_View_2092pb0
- highp float PrePadding_View_2092;
- #define View_WorldCameraMovementSinceLastFrame View_WorldCameraMovementSinceLastFramepb0
- highp vec3 View_WorldCameraMovementSinceLastFrame;
- #define View_CullingSign View_CullingSignpb0
- highp float View_CullingSign;
- #define View_NearPlane View_NearPlanepb0
- highp float View_NearPlane;
- #define View_AdaptiveTessellationFactor View_AdaptiveTessellationFactorpb0
- highp float View_AdaptiveTessellationFactor;
- #define View_GameTime View_GameTimepb0
- highp float View_GameTime;
- #define View_RealTime View_RealTimepb0
- highp float View_RealTime;
- #define View_MaterialTextureMipBias View_MaterialTextureMipBiaspb0
- highp float View_MaterialTextureMipBias;
- #define View_MaterialTextureDerivativeMultiply View_MaterialTextureDerivativeMultiplypb0
- highp float View_MaterialTextureDerivativeMultiply;
- #define View_Random View_Randompb0
- highp uint View_Random;
- #define View_FrameNumber View_FrameNumberpb0
- highp uint View_FrameNumber;
- #define View_StateFrameIndexMod8 View_StateFrameIndexMod8pb0
- highp uint View_StateFrameIndexMod8;
- #define View_CameraCut View_CameraCutpb0
- highp float View_CameraCut;
- #define View_UnlitViewmodeMask View_UnlitViewmodeMaskpb0
- highp float View_UnlitViewmodeMask;
- #define PrePadding_View_2156 PrePadding_View_2156pb0
- highp float PrePadding_View_2156;
- #define View_DirectionalLightColor View_DirectionalLightColorpb0
- highp vec4 View_DirectionalLightColor;
- #define View_DirectionalLightDirection View_DirectionalLightDirectionpb0
- highp vec3 View_DirectionalLightDirection;
- #define PrePadding_View_2188 PrePadding_View_2188pb0
- highp float PrePadding_View_2188;
- #define View_TranslucencyLightingVolumeMin View_TranslucencyLightingVolumeMinpb0
- highp vec4 View_TranslucencyLightingVolumeMin[2];
- #define View_TranslucencyLightingVolumeInvSize View_TranslucencyLightingVolumeInvSizepb0
- highp vec4 View_TranslucencyLightingVolumeInvSize[2];
- #define View_TemporalAAParams View_TemporalAAParamspb0
- highp vec4 View_TemporalAAParams;
- #define View_CircleDOFParams View_CircleDOFParamspb0
- highp vec4 View_CircleDOFParams;
- #define View_DepthOfFieldSensorWidth View_DepthOfFieldSensorWidthpb0
- highp float View_DepthOfFieldSensorWidth;
- #define View_DepthOfFieldFocalDistance View_DepthOfFieldFocalDistancepb0
- highp float View_DepthOfFieldFocalDistance;
- #define View_DepthOfFieldScale View_DepthOfFieldScalepb0
- highp float View_DepthOfFieldScale;
- #define View_DepthOfFieldFocalLength View_DepthOfFieldFocalLengthpb0
- highp float View_DepthOfFieldFocalLength;
- #define View_DepthOfFieldFocalRegion View_DepthOfFieldFocalRegionpb0
- highp float View_DepthOfFieldFocalRegion;
- #define View_DepthOfFieldNearTransitionRegion View_DepthOfFieldNearTransitionRegionpb0
- highp float View_DepthOfFieldNearTransitionRegion;
- #define View_DepthOfFieldFarTransitionRegion View_DepthOfFieldFarTransitionRegionpb0
- highp float View_DepthOfFieldFarTransitionRegion;
- #define View_MotionBlurNormalizedToPixel View_MotionBlurNormalizedToPixelpb0
- highp float View_MotionBlurNormalizedToPixel;
- #define View_bSubsurfacePostprocessEnabled View_bSubsurfacePostprocessEnabledpb0
- highp float View_bSubsurfacePostprocessEnabled;
- #define View_GeneralPurposeTweak View_GeneralPurposeTweakpb0
- highp float View_GeneralPurposeTweak;
- #define View_DemosaicVposOffset View_DemosaicVposOffsetpb0
- highp float View_DemosaicVposOffset;
- #define PrePadding_View_2332 PrePadding_View_2332pb0
- highp float PrePadding_View_2332;
- #define View_IndirectLightingColorScale View_IndirectLightingColorScalepb0
- highp vec3 View_IndirectLightingColorScale;
- #define View_HDR32bppEncodingMode View_HDR32bppEncodingModepb0
- highp float View_HDR32bppEncodingMode;
- #define View_AtmosphericFogSunDirection View_AtmosphericFogSunDirectionpb0
- highp vec3 View_AtmosphericFogSunDirection;
- #define View_AtmosphericFogSunPower View_AtmosphericFogSunPowerpb0
- highp float View_AtmosphericFogSunPower;
- #define View_AtmosphericFogPower View_AtmosphericFogPowerpb0
- highp float View_AtmosphericFogPower;
- #define View_AtmosphericFogDensityScale View_AtmosphericFogDensityScalepb0
- highp float View_AtmosphericFogDensityScale;
- #define View_AtmosphericFogDensityOffset View_AtmosphericFogDensityOffsetpb0
- highp float View_AtmosphericFogDensityOffset;
- #define View_AtmosphericFogGroundOffset View_AtmosphericFogGroundOffsetpb0
- highp float View_AtmosphericFogGroundOffset;
- #define View_AtmosphericFogDistanceScale View_AtmosphericFogDistanceScalepb0
- highp float View_AtmosphericFogDistanceScale;
- #define View_AtmosphericFogAltitudeScale View_AtmosphericFogAltitudeScalepb0
- highp float View_AtmosphericFogAltitudeScale;
- #define View_AtmosphericFogHeightScaleRayleigh View_AtmosphericFogHeightScaleRayleighpb0
- highp float View_AtmosphericFogHeightScaleRayleigh;
- #define View_AtmosphericFogStartDistance View_AtmosphericFogStartDistancepb0
- highp float View_AtmosphericFogStartDistance;
- #define View_AtmosphericFogDistanceOffset View_AtmosphericFogDistanceOffsetpb0
- highp float View_AtmosphericFogDistanceOffset;
- #define View_AtmosphericFogSunDiscScale View_AtmosphericFogSunDiscScalepb0
- highp float View_AtmosphericFogSunDiscScale;
- #define View_AtmosphericFogRenderMask View_AtmosphericFogRenderMaskpb0
- highp uint View_AtmosphericFogRenderMask;
- #define View_AtmosphericFogInscatterAltitudeSampleNum View_AtmosphericFogInscatterAltitudeSampleNumpb0
- highp uint View_AtmosphericFogInscatterAltitudeSampleNum;
- #define View_AtmosphericFogSunColor View_AtmosphericFogSunColorpb0
- highp vec4 View_AtmosphericFogSunColor;
- #define View_NormalCurvatureToRoughnessScaleBias View_NormalCurvatureToRoughnessScaleBiaspb0
- highp vec3 View_NormalCurvatureToRoughnessScaleBias;
- #define View_RenderingReflectionCaptureMask View_RenderingReflectionCaptureMaskpb0
- highp float View_RenderingReflectionCaptureMask;
- #define View_AmbientCubemapTint View_AmbientCubemapTintpb0
- highp vec4 View_AmbientCubemapTint;
- #define View_AmbientCubemapIntensity View_AmbientCubemapIntensitypb0
- highp float View_AmbientCubemapIntensity;
- #define View_SkyLightParameters View_SkyLightParameterspb0
- highp float View_SkyLightParameters;
- #define PrePadding_View_2472 PrePadding_View_2472pb0
- highp float PrePadding_View_2472;
- #define PrePadding_View_2476 PrePadding_View_2476pb0
- highp float PrePadding_View_2476;
- #define View_SkyLightColor View_SkyLightColorpb0
- highp vec4 View_SkyLightColor;
- #define View_SkyIrradianceEnvironmentMap View_SkyIrradianceEnvironmentMappb0
- highp vec4 View_SkyIrradianceEnvironmentMap[7];
- #define View_MobilePreviewMode View_MobilePreviewModepb0
- highp float View_MobilePreviewMode;
- #define View_HMDEyePaddingOffset View_HMDEyePaddingOffsetpb0
- highp float View_HMDEyePaddingOffset;
- #define View_ReflectionCubemapMaxMip View_ReflectionCubemapMaxMippb0
- highp float View_ReflectionCubemapMaxMip;
- #define View_ShowDecalsMask View_ShowDecalsMaskpb0
- highp float View_ShowDecalsMask;
- #define View_DistanceFieldAOSpecularOcclusionMode View_DistanceFieldAOSpecularOcclusionModepb0
- highp uint View_DistanceFieldAOSpecularOcclusionMode;
- #define View_IndirectCapsuleSelfShadowingIntensity View_IndirectCapsuleSelfShadowingIntensitypb0
- highp float View_IndirectCapsuleSelfShadowingIntensity;
- #define PrePadding_View_2632 PrePadding_View_2632pb0
- highp float PrePadding_View_2632;
- #define PrePadding_View_2636 PrePadding_View_2636pb0
- highp float PrePadding_View_2636;
- #define View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeight View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeightpb0
- highp vec3 View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeight;
- #define View_StereoPassIndex View_StereoPassIndexpb0
- highp int View_StereoPassIndex;
- #define View_GlobalVolumeCenterAndExtent View_GlobalVolumeCenterAndExtentpb0
- highp vec4 View_GlobalVolumeCenterAndExtent[4];
- #define View_GlobalVolumeWorldToUVAddAndMul View_GlobalVolumeWorldToUVAddAndMulpb0
- highp vec4 View_GlobalVolumeWorldToUVAddAndMul[4];
- #define View_GlobalVolumeDimension View_GlobalVolumeDimensionpb0
- highp float View_GlobalVolumeDimension;
- #define View_GlobalVolumeTexelSize View_GlobalVolumeTexelSizepb0
- highp float View_GlobalVolumeTexelSize;
- #define View_MaxGlobalDistance View_MaxGlobalDistancepb0
- highp float View_MaxGlobalDistance;
- #define View_bCheckerboardSubsurfaceProfileRendering View_bCheckerboardSubsurfaceProfileRenderingpb0
- highp float View_bCheckerboardSubsurfaceProfileRendering;
- #define View_VolumetricFogInvGridSize View_VolumetricFogInvGridSizepb0
- highp vec3 View_VolumetricFogInvGridSize;
- #define PrePadding_View_2812 PrePadding_View_2812pb0
- highp float PrePadding_View_2812;
- #define View_VolumetricFogGridZParams View_VolumetricFogGridZParamspb0
- highp vec3 View_VolumetricFogGridZParams;
- #define PrePadding_View_2828 PrePadding_View_2828pb0
- highp float PrePadding_View_2828;
- #define View_VolumetricFogSVPosToVolumeUV View_VolumetricFogSVPosToVolumeUVpb0
- highp vec2 View_VolumetricFogSVPosToVolumeUV;
- #define View_VolumetricFogMaxDistance View_VolumetricFogMaxDistancepb0
- highp float View_VolumetricFogMaxDistance;
- #define PrePadding_View_2844 PrePadding_View_2844pb0
- highp float PrePadding_View_2844;
- #define View_VolumetricLightmapWorldToUVScale View_VolumetricLightmapWorldToUVScalepb0
- highp vec3 View_VolumetricLightmapWorldToUVScale;
- #define PrePadding_View_2860 PrePadding_View_2860pb0
- highp float PrePadding_View_2860;
- #define View_VolumetricLightmapWorldToUVAdd View_VolumetricLightmapWorldToUVAddpb0
- highp vec3 View_VolumetricLightmapWorldToUVAdd;
- #define PrePadding_View_2876 PrePadding_View_2876pb0
- highp float PrePadding_View_2876;
- #define View_VolumetricLightmapIndirectionTextureSize View_VolumetricLightmapIndirectionTextureSizepb0
- highp vec3 View_VolumetricLightmapIndirectionTextureSize;
- #define View_VolumetricLightmapBrickSize View_VolumetricLightmapBrickSizepb0
- highp float View_VolumetricLightmapBrickSize;
- #define View_VolumetricLightmapBrickTexelSize View_VolumetricLightmapBrickTexelSizepb0
- highp vec3 View_VolumetricLightmapBrickTexelSize;
- #define View_StereoIPD View_StereoIPDpb0
- highp float View_StereoIPD;
- };
- layout(std140) uniform pb1
- {
- #define PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAdd PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAddpb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAdd;
- #define PrePadding_PrecomputedLightingBuffer_12 PrePadding_PrecomputedLightingBuffer_12pb1
- highp float PrePadding_PrecomputedLightingBuffer_12;
- #define PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScale PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScalepb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScale;
- #define PrePadding_PrecomputedLightingBuffer_28 PrePadding_PrecomputedLightingBuffer_28pb1
- highp float PrePadding_PrecomputedLightingBuffer_28;
- #define PrecomputedLightingBuffer_IndirectLightingCacheMinUV PrecomputedLightingBuffer_IndirectLightingCacheMinUVpb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCacheMinUV;
- #define PrePadding_PrecomputedLightingBuffer_44 PrePadding_PrecomputedLightingBuffer_44pb1
- highp float PrePadding_PrecomputedLightingBuffer_44;
- #define PrecomputedLightingBuffer_IndirectLightingCacheMaxUV PrecomputedLightingBuffer_IndirectLightingCacheMaxUVpb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCacheMaxUV;
- #define PrePadding_PrecomputedLightingBuffer_60 PrePadding_PrecomputedLightingBuffer_60pb1
- highp float PrePadding_PrecomputedLightingBuffer_60;
- #define PrecomputedLightingBuffer_PointSkyBentNormal PrecomputedLightingBuffer_PointSkyBentNormalpb1
- highp vec4 PrecomputedLightingBuffer_PointSkyBentNormal;
- #define PrecomputedLightingBuffer_DirectionalLightShadowing PrecomputedLightingBuffer_DirectionalLightShadowingpb1
- highp float PrecomputedLightingBuffer_DirectionalLightShadowing;
- #define PrePadding_PrecomputedLightingBuffer_84 PrePadding_PrecomputedLightingBuffer_84pb1
- highp float PrePadding_PrecomputedLightingBuffer_84;
- #define PrePadding_PrecomputedLightingBuffer_88 PrePadding_PrecomputedLightingBuffer_88pb1
- highp float PrePadding_PrecomputedLightingBuffer_88;
- #define PrePadding_PrecomputedLightingBuffer_92 PrePadding_PrecomputedLightingBuffer_92pb1
- highp float PrePadding_PrecomputedLightingBuffer_92;
- #define PrecomputedLightingBuffer_StaticShadowMapMasks PrecomputedLightingBuffer_StaticShadowMapMaskspb1
- highp vec4 PrecomputedLightingBuffer_StaticShadowMapMasks;
- #define PrecomputedLightingBuffer_InvUniformPenumbraSizes PrecomputedLightingBuffer_InvUniformPenumbraSizespb1
- highp vec4 PrecomputedLightingBuffer_InvUniformPenumbraSizes;
- #define PrecomputedLightingBuffer_IndirectLightingSHCoefficients0 PrecomputedLightingBuffer_IndirectLightingSHCoefficients0pb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients0[3];
- #define PrecomputedLightingBuffer_IndirectLightingSHCoefficients1 PrecomputedLightingBuffer_IndirectLightingSHCoefficients1pb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients1[3];
- #define PrecomputedLightingBuffer_IndirectLightingSHCoefficients2 PrecomputedLightingBuffer_IndirectLightingSHCoefficients2pb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients2;
- #define PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficient PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficientpb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficient;
- #define PrecomputedLightingBuffer_LightMapCoordinateScaleBias PrecomputedLightingBuffer_LightMapCoordinateScaleBiaspb1
- highp vec4 PrecomputedLightingBuffer_LightMapCoordinateScaleBias;
- #define PrecomputedLightingBuffer_ShadowMapCoordinateScaleBias PrecomputedLightingBuffer_ShadowMapCoordinateScaleBiaspb1
- highp vec4 PrecomputedLightingBuffer_ShadowMapCoordinateScaleBias;
- #define PrecomputedLightingBuffer_LightMapScale PrecomputedLightingBuffer_LightMapScalepb1
- highp vec4 PrecomputedLightingBuffer_LightMapScale[2];
- #define PrecomputedLightingBuffer_LightMapAdd PrecomputedLightingBuffer_LightMapAddpb1
- highp vec4 PrecomputedLightingBuffer_LightMapAdd[2];
- };
- layout(std140) uniform pb2
- {
- #define MobileDirectionalLight_DirectionalLightColor MobileDirectionalLight_DirectionalLightColorpb2
- highp vec4 MobileDirectionalLight_DirectionalLightColor;
- #define MobileDirectionalLight_DirectionalLightDirection MobileDirectionalLight_DirectionalLightDirectionpb2
- highp vec3 MobileDirectionalLight_DirectionalLightDirection;
- #define MobileDirectionalLight_DirectionalLightShadowTransition MobileDirectionalLight_DirectionalLightShadowTransitionpb2
- highp float MobileDirectionalLight_DirectionalLightShadowTransition;
- #define MobileDirectionalLight_DirectionalLightShadowSize MobileDirectionalLight_DirectionalLightShadowSizepb2
- highp vec4 MobileDirectionalLight_DirectionalLightShadowSize;
- #define MobileDirectionalLight_DirectionalLightScreenToShadow MobileDirectionalLight_DirectionalLightScreenToShadowpb2
- highp mat4 MobileDirectionalLight_DirectionalLightScreenToShadow[4];
- #define MobileDirectionalLight_DirectionalLightShadowDistances MobileDirectionalLight_DirectionalLightShadowDistancespb2
- highp vec4 MobileDirectionalLight_DirectionalLightShadowDistances;
- #define MobileDirectionalLight_DirectionalLightDistanceFadeMAD MobileDirectionalLight_DirectionalLightDistanceFadeMADpb2
- highp vec2 MobileDirectionalLight_DirectionalLightDistanceFadeMAD;
- };
- layout(std140) uniform pb3
- {
- #define Material_VectorExpressions Material_VectorExpressionspb3
- highp vec4 Material_VectorExpressions[3];
- #define Material_ScalarExpressions Material_ScalarExpressionspb3
- highp vec4 Material_ScalarExpressions[1];
- };
- precision mediump float;
- precision mediump int;
- #ifndef DONTEMITSAMPLERDEFAULTPRECISION
- precision mediump sampler2D;
- precision mediump samplerCube;
- #endif
- #ifdef TEXCOORDPRECISIONWORKAROUND
- vec4 texture2DTexCoordPrecisionWorkaround(sampler2D p, vec2 tcoord)
- {
- return texture2D(p, tcoord);
- }
- #define texture2D texture2DTexCoordPrecisionWorkaround
- #endif
- precision highp float;
- precision highp int;
- void compiler_internal_AdjustInputSemantic(inout vec4 TempVariable)
- {
- #if HLSLCC_DX11ClipSpace
- TempVariable.y = -TempVariable.y;
- TempVariable.z = ( TempVariable.z + TempVariable.w ) / 2.0;
- #endif
- }
- void compiler_internal_AdjustOutputSemantic(inout vec4 Src)
- {
- #if HLSLCC_DX11ClipSpace
- Src.y = -Src.y;
- Src.z = ( 2.0 * Src.z ) - Src.w;
- #endif
- }
- bool compiler_internal_AdjustIsFrontFacing(bool isFrontFacing)
- {
- #if HLSLCC_DX11ClipSpace
- return !isFrontFacing;
- #else
- return isFrontFacing;
- #endif
- }
- uniform highp vec4 pu_h[2];
- uniform highp samplerCube ps4;
- uniform highp sampler2D ps2;
- uniform highp sampler2D ps1;
- uniform highp sampler2D ps0;
- uniform highp sampler2D ps3;
- INTERFACE_LOCATION(0) in highp vec4 in_TEXCOORD10;
- INTERFACE_LOCATION(1) in highp vec4 in_TEXCOORD11;
- INTERFACE_LOCATION(2) in highp vec4 in_TEXCOORD0;
- INTERFACE_LOCATION(3) in highp vec4 in_TEXCOORD4;
- INTERFACE_LOCATION(4) in highp vec4 in_TEXCOORD8;
- INTERFACE_LOCATION(0) out vec4 out_Target0;
- void main()
- {
- highp vec3 v0;
- v0.xyz = pu_h[1].xyz;
- vec4 v1;
- vec3 v2;
- vec3 v3;
- v3.xyz = in_TEXCOORD10.xyz;
- v2.xyz = v3;
- vec4 v4;
- vec4 v5;
- v5.xyzw = in_TEXCOORD11;
- v4.xyzw = v5;
- vec3 v6;
- vec3 v7;
- v7.xyz = normalize((vec3(-1.000000e-02,-1.000000e-02,-1.000000e-02)*in_TEXCOORD8.xyz));
- v6.xyz = v7;
- vec2 v8;
- v8.xy = ((texture(ps0,in_TEXCOORD0.xy).xy*vec2(2.000000e+00,2.000000e+00))+vec2(-1.000000e+00,-1.000000e+00));
- vec4 v9;
- v9.w = 1.000000e+00;
- v9.xy = v8;
- v9.z = sqrt(clamp((1.000000e+00+(-dot(v8,v8))),0.000000e+00,1.000000e+00));
- vec3 v10;
- v10.xyz = v9.xyz;
- vec3 v11;
- highp vec3 v12;
- v12.xyz = ((v4.xyz*v10.zzz)+(((cross(v4.xyz,v2)*v4.www)*v10.yyy)+(v2*v10.xxx)));
- vec3 v13;
- v13.xyz = normalize(v12);
- v11.xyz = v13;
- vec3 v14;
- v14.xyz = ((-v6)+((v11*vec3(dot(v11,v6)))*vec3(2.000000e+00,2.000000e+00,2.000000e+00)));
- vec4 v15;
- v15.xyzw = texture(ps1,in_TEXCOORD0.xy);
- vec2 v16;
- vec2 v17;
- v17.xy = in_TEXCOORD0.xy;
- v16.xy = (v17*vec2(1.124000e+00,1.602000e+00));
- vec2 v18;
- v18.xy = (v16+(-fract(v16)));
- vec3 v19;
- v19.xyz = Material_VectorExpressions[2].xyz;
- vec3 v20;
- v20.xyz = clamp(v15.xyz,vec3(0.000000e+00,0.000000e+00,0.000000e+00),vec3(1.000000e+00,1.000000e+00,1.000000e+00));
- vec3 v21;
- v21.xyz = (v20+(-v20));
- float h22;
- h22 = clamp(min(max(mix(Material_ScalarExpressions[0].y,Material_ScalarExpressions[0].x,mix(texture(ps2,in_TEXCOORD0.xy).y,v15.w,min(max((v18.x+v18.y),0.000000e+00),1.000000e+00))),0.000000e+00),1.000000e+00),1.200000e-01,1.000000e+00);
- vec3 v23;
- vec2 v24;
- vec4 v25;
- v25.xyzw = ((vec4(h22)*vec4(-1.000000e+00,-2.750000e-02,-5.720000e-01,2.200000e-02))+vec4(1.000000e+00,4.250000e-02,1.040000e+00,-4.000000e-02));
- vec2 v26;
- v26.xy = ((vec2(-1.040000e+00,1.040000e+00)*vec2(((min((v25.x*v25.x),exp2((-9.280000e+00*max(dot(v11,v6),0.000000e+00))))*v25.x)+v25.y)))+v25.zw);
- v24.xy = v26;
- v24.y = (v26.y*clamp((5.000000e+01*v20.y),0.000000e+00,1.000000e+00));
- v23.xyz = ((v20*v26.xxx)+v24.yyy);
- highp vec2 v27;
- v27.xy = (in_TEXCOORD4.xy*vec2(1.000000e+00,5.000000e-01));
- vec3 v28;
- v28.xyz = ((texture(ps3,v27).xyz*PrecomputedLightingBuffer_LightMapScale[0].xyz)+PrecomputedLightingBuffer_LightMapAdd[0].xyz);
- float h29;
- h29 = dot(v28,vec3(3.000000e-01,5.900000e-01,1.100000e-01));
- highp vec4 v30;
- v30.w = 1.000000e+00;
- highp vec3 v31;
- v31.xyz = v11.yzx;
- v30.xyz = v31;
- float h32;
- highp vec4 v33;
- v33.xyzw = ((texture(ps3,(v27+vec2(0.000000e+00,5.000000e-01)))*PrecomputedLightingBuffer_LightMapScale[1])+PrecomputedLightingBuffer_LightMapAdd[1]);
- float h34;
- h34 = max(0.000000e+00,dot(v33,v30));
- h32 = ((exp2(((h29*1.600000e+01)+-8.000000e+00))+-3.906250e-03)*h34);
- vec3 v35;
- v35.xyz = (v28*vec3((h32/h29)));
- vec4 v36;
- v36.xyz = v35;
- v36.w = h32;
- highp vec3 v37;
- highp vec3 v38;
- v38.xyz = normalize((v6+MobileDirectionalLight_DirectionalLightDirection));
- v37.xyz = v38;
- highp vec3 v39;
- vec3 v40;
- v40.xyz = v37;
- highp vec3 v41;
- v41.xyz = cross(v11,v40);
- v39.xyz = v41;
- float h42;
- h42 = (h22*h22);
- highp float f43;
- highp vec3 v44;
- v44.xyz = v11;
- float h45;
- h45 = max(0.000000e+00,dot(v44,v37));
- highp float f46;
- f46 = (h45*h42);
- f43 = f46;
- highp float f47;
- highp float f48;
- f48 = h42;
- f47 = (f48/(dot(v39,v39)+(f43*f43)));
- vec3 v49;
- highp vec3 v50;
- v50.xyz = v11;
- highp vec3 v51;
- v51.xyz = MobileDirectionalLight_DirectionalLightDirection;
- highp float f52;
- f52 = 0.000000e+00;
- highp vec3 v53;
- v53.xyz = MobileDirectionalLight_DirectionalLightColor.xyz;
- float h54;
- h54 = min((f47*f47),6.550400e+04);
- highp vec3 v55;
- v55.xyz = (v21+(v23*vec3((((h22*2.500000e-01)+2.500000e-01)*h54))));
- vec3 v56;
- v56.xyz = ((vec3((f52*max(0.000000e+00,dot(v50,v51))))*v53)*v55);
- v49.xyz = ((v35*v21)+v56);
- vec3 v57;
- float h58;
- h58 = float((pu_h[0].x>0.000000e+00));
- highp float f59;
- highp float f60;
- f60 = pu_h[0].x;
- highp float f61;
- highp float f62;
- f62 = View_ReflectionCubemapMaxMip;
- f61 = f62;
- f59 = (bool(h58))?(f60):(f61);
- vec4 v63;
- float h64;
- h64 = f59;
- highp float f65;
- f65 = ((h64+-1.000000e+00)+(-(1.000000e+00+(-(1.200000e+00*log2(h22))))));
- v63.xyzw = textureLod(ps4,v14,f65);
- if (bool(h58))
- {
- vec3 v66;
- v66.xyz = View_SkyLightColor.xyz;
- v57.xyz = (v63.xyz*v66);
- }
- else
- {
- vec3 v67;
- v67.xyz = (v63.xyz*vec3((v63.w*1.600000e+01)));
- float h68;
- h68 = v0.x;
- v57.xyz = ((v67*v67)*vec3(h68));
- }
- v1.xyz = ((v49+((v57*v36.www)*v23))+max(v19,vec3(0.000000e+00,0.000000e+00,0.000000e+00)));
- v1.w = 0.000000e+00;
- float h69;
- h69 = in_TEXCOORD8.w;
- v1.w = h69;
- out_Target0.xyzw = v1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement