Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mesh: Loading sphere.mesh.
- DefaultWorkQueueBase('Root') - QUEUED(thread:2658): ID=1 channel=2 requestType=1
- DefaultWorkQueueBase('Root') - PROCESS_REQUEST_START(2658): ID=1 channel=2 requestType=1
- Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
- Terrain::distributeVertexData processing source terrain size of 513
- Assigning vertex data, resolution=513 startDepth=2 endDepth=4 splits=4
- Assigning vertex data, resolution=129 startDepth=0 endDepth=2 splits=1
- Terrain::distributeVertexData finished
- DefaultWorkQueueBase('Root') - PROCESS_REQUEST_END(2658): ID=1 channel=2 requestType=1 processed=1
- DefaultWorkQueueBase('Root') - PROCESS_RESPONSE_START(thread:2658): ID=1 success=1 messages=[] channel=2 requestType=1
- DefaultWorkQueueBase('Root') - QUEUED(thread:2658): ID=2 channel=4 requestType=1
- DefaultWorkQueueBase('Root') - PROCESS_REQUEST_START(2658): ID=2 channel=4 requestType=1
- DefaultWorkQueueBase('Root') - PROCESS_REQUEST_END(2658): ID=2 channel=4 requestType=1 processed=1
- DefaultWorkQueueBase('Root') - PROCESS_RESPONSE_START(thread:2658): ID=2 success=1 messages=[] channel=4 requestType=1
- DefaultWorkQueueBase('Root') - PROCESS_RESPONSE_END(thread:2658): ID=2 success=1 messages=[] channel=4 requestType=1
- DefaultWorkQueueBase('Root') - QUEUED(thread:2658): ID=3 channel=3 requestType=1
- *** Terrain Vertex Program: OgreTerrain/1357558352/sm2/vp/hlod ***
- struct v2p
- {
- float4 oPos : POSITION;
- float4 oPosObj : TEXCOORD0;
- float4 oUVMisc : TEXCOORD1; // xy = uv, z = camDepth
- float4 oUV0 : TEXCOORD2;
- float4 oUV1 : TEXCOORD3;
- float fogVal : COLOR;
- float4 oLightSpacePos0 : TEXCOORD4 ;
- };
- v2p main_vp(
- float2 posIndex : POSITION,
- float height : TEXCOORD0,
- float2 delta : TEXCOORD1,
- uniform float4x4 worldMatrix,
- uniform float4x4 viewProjMatrix,
- uniform float2 lodMorph,
- uniform float4x4 posIndexToObjectSpace,
- uniform float baseUVScale,
- uniform float4 uvMul_0
- , uniform float4 fogParams
- )
- {
- float4 pos;
- pos = mul(posIndexToObjectSpace, float4(posIndex, height, 1));
- float2 uv = float2(posIndex.x * baseUVScale, 1.0 - (posIndex.y * baseUVScale));
- float4 worldPos = mul(worldMatrix, pos);
- v2p output;
- output.oPosObj = pos;
- float toMorph = -min(0, sign(delta.y - lodMorph.y));
- worldPos.y += delta.x * toMorph * lodMorph.x;
- output.oUV0.xy = uv.xy * uvMul_0.r;
- output.oUV0.zw = uv.xy * uvMul_0.g;
- output.oUV1.xy = uv.xy * uvMul_0.b;
- output.oUV1.zw = uv.xy * uvMul_0.a;
- output.oPos = mul(viewProjMatrix, worldPos);
- output.oUVMisc.xy = uv.xy;
- output.fogVal = saturate((output.oPos.z - fogParams.y) * fogParams.w);
- return output;}
- *** ***
- *** Terrain Fragment Program: OgreTerrain/1357558352/sm2/fp/hlod ***
- SamplerState g_SamLinear
- {
- Filter = MIN_MAG_MIP_LINEAR;
- AddressU = Wrap;
- AddressV = Wrap;
- };
- float4 expand(float4 v)
- {
- return v * 2 - 1;
- }
- struct v2p
- {
- float4 oPos : POSITION;
- float4 oPosObj : TEXCOORD0;
- float4 oUVMisc : TEXCOORD1; // xy = uv, z = camDepth
- float4 oUV0 : TEXCOORD2;
- float4 oUV1 : TEXCOORD3;
- float fogVal : COLOR;
- float4 oLightSpacePos0 : TEXCOORD4 ;
- };
- Texture2D globalNormal : register(s0);
- Texture2D lightMap : register(s1);
- Texture2D blendTex0 : register(s2);
- Texture2D difftex0 : register(s3);
- Texture2D normtex0 : register(s4);
- Texture2D difftex1 : register(s5);
- Texture2D normtex1 : register(s6);
- Texture2D difftex2 : register(s7);
- Texture2D normtex2 : register(s8);
- float4 main_fp(
- v2p input,
- uniform float3 fogColour,
- uniform float3 ambient,
- uniform float4 lightPosObjSpace,
- uniform float3 lightDiffuseColour,
- uniform float3 lightSpecularColour,
- uniform float3 eyePosObjSpace,
- uniform float4 scaleBiasSpecular
- ) : SV_Target
- {
- float4 outputCol;
- float shadow = 1.0;
- float2 uv = input.oUVMisc.xy;
- outputCol = float4(0,0,0,1);
- float3 normal = expand(globalNormal.Sample(g_SamLinear, uv)).rgb;
- float3 lightDir =
- lightPosObjSpace.xyz - (input.oPosObj.xyz * lightPosObjSpace.w);
- float3 eyeDir = eyePosObjSpace - input.oPosObj.xyz;
- float3 diffuse = float3(0,0,0);
- float specular = 0;
- float4 blendTexVal0 = blendTex0.Sample(g_SamLinear, uv);
- float3 tangent = float3(1, 0, 0);
- float3 binormal = normalize(cross(tangent, normal));
- tangent = normalize(cross(normal, binormal));
- float3x3 TBN = float3x3(tangent, binormal, normal);
- float4 litRes, litResLayer;
- float3 TSlightDir, TSeyeDir, TShalfAngle, TSnormal;
- float displacement;
- TSlightDir = normalize(mul(TBN, lightDir));
- TSeyeDir = normalize(mul(TBN, eyeDir));
- float2 uv0 = input.oUV0.xy;
- displacement = normtex0.Sample(g_SamLinear, uv0).a
- * scaleBiasSpecular.x + scaleBiasSpecular.y;
- uv0 += TSeyeDir.xy * displacement;
- TSnormal = expand(normtex0.Sample(g_SamLinear, uv0)).rgb;
- TShalfAngle = normalize(TSlightDir + TSeyeDir);
- litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);
- litRes = litResLayer;
- float4 diffuseSpecTex0 = difftex0.Sample(g_SamLinear, uv0);
- diffuse = diffuseSpecTex0.rgb;
- specular = diffuseSpecTex0.a;
- float2 uv1 = input.oUV0.zw;
- displacement = normtex1.Sample(g_SamLinear, uv1).a
- * scaleBiasSpecular.x + scaleBiasSpecular.y;
- uv1 += TSeyeDir.xy * displacement;
- TSnormal = expand(normtex1.Sample(g_SamLinear, uv1)).rgb;
- TShalfAngle = normalize(TSlightDir + TSeyeDir);
- litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);
- litRes = lerp(litRes, litResLayer, blendTexVal0.r);
- float4 diffuseSpecTex1 = difftex1.Sample(g_SamLinear, uv1);
- diffuse = lerp(diffuse, diffuseSpecTex1.rgb, blendTexVal0.r);
- specular = lerp(specular, diffuseSpecTex1.a, blendTexVal0.r);
- float2 uv2 = input.oUV1.xy;
- displacement = normtex2.Sample(g_SamLinear, uv2).a
- * scaleBiasSpecular.x + scaleBiasSpecular.y;
- uv2 += TSeyeDir.xy * displacement;
- TSnormal = expand(normtex2.Sample(g_SamLinear, uv2)).rgb;
- TShalfAngle = normalize(TSlightDir + TSeyeDir);
- litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);
- litRes = lerp(litRes, litResLayer, blendTexVal0.g);
- float4 diffuseSpecTex2 = difftex2.Sample(g_SamLinear, uv2);
- diffuse = lerp(diffuse, diffuseSpecTex2.rgb, blendTexVal0.g);
- specular = lerp(specular, diffuseSpecTex2.a, blendTexVal0.g);
- shadow = lightMap.Sample(g_SamLinear, uv).r;
- outputCol.rgb += ambient.rgb * diffuse + litRes.y * lightDiffuseColour * diffuse * shadow;
- outputCol.rgb += litRes.z * lightSpecularColour * specular * shadow;
- outputCol.rgb = lerp(outputCol.rgb, fogColour, input.fogVal);
- return outputCol;
- }
- *** ***
- *** Terrain Vertex Program: OgreTerrain/1357558352/sm2/vp/llod ***
- struct v2p
- {
- float4 oPos : POSITION;
- float4 oPosObj : TEXCOORD0;
- float4 oUVMisc : TEXCOORD1; // xy = uv, z = camDepth
- float fogVal : COLOR;
- float4 oLightSpacePos0 : TEXCOORD2 ;
- };
- v2p main_vp(
- float2 posIndex : POSITION,
- float height : TEXCOORD0,
- float2 delta : TEXCOORD1,
- uniform float4x4 worldMatrix,
- uniform float4x4 viewProjMatrix,
- uniform float2 lodMorph,
- uniform float4x4 posIndexToObjectSpace,
- uniform float baseUVScale,
- uniform float4 uvMul_0
- , uniform float4 fogParams
- )
- {
- float4 pos;
- pos = mul(posIndexToObjectSpace, float4(posIndex, height, 1));
- float2 uv = float2(posIndex.x * baseUVScale, 1.0 - (posIndex.y * baseUVScale));
- float4 worldPos = mul(worldMatrix, pos);
- v2p output;
- output.oPosObj = pos;
- float toMorph = -min(0, sign(delta.y - lodMorph.y));
- worldPos.y += delta.x * toMorph * lodMorph.x;
- output.oPos = mul(viewProjMatrix, worldPos);
- output.oUVMisc.xy = uv.xy;
- output.fogVal = saturate((output.oPos.z - fogParams.y) * fogParams.w);
- return output;}
- *** ***
- *** Terrain Fragment Program: OgreTerrain/1357558352/sm2/fp/llod ***
- SamplerState g_SamLinear
- {
- Filter = MIN_MAG_MIP_LINEAR;
- AddressU = Wrap;
- AddressV = Wrap;
- };
- float4 expand(float4 v)
- {
- return v * 2 - 1;
- }
- struct v2p
- {
- float4 oPos : POSITION;
- float4 oPosObj : TEXCOORD0;
- float4 oUVMisc : TEXCOORD1; // xy = uv, z = camDepth
- float fogVal : COLOR;
- float4 oLightSpacePos0 : TEXCOORD2 ;
- };
- Texture2D compositeMap : register(s0);
- float4 main_fp(
- v2p input,
- uniform float3 fogColour,
- uniform float3 ambient,
- uniform float4 lightPosObjSpace,
- uniform float3 lightDiffuseColour,
- uniform float3 lightSpecularColour,
- uniform float3 eyePosObjSpace,
- uniform float4 scaleBiasSpecular
- ) : SV_Target
- {
- float4 outputCol;
- float shadow = 1.0;
- float2 uv = input.oUVMisc.xy;
- outputCol = float4(0,0,0,1);
- float3 lightDir =
- lightPosObjSpace.xyz - (input.oPosObj.xyz * lightPosObjSpace.w);
- float3 eyeDir = eyePosObjSpace - input.oPosObj.xyz;
- float3 diffuse = float3(0,0,0);
- float specular = 0;
- float4 composite = compositeMap.Sample(g_SamLinear, uv);
- diffuse = composite.rgb;
- outputCol.rgb = diffuse;
- outputCol.rgb = lerp(outputCol.rgb, fogColour, input.fogVal);
- return outputCol;
- }
- *** ***
- WARNING: Texture instance 'OgreTerrain/1357558352/nm' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- WARNING: Texture instance 'OgreTerrain/1357558352/lm' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- WARNING: Texture instance 'TerrBlend1' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- WARNING: Texture instance 'OgreTerrain/1357558352/comp' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- WARNING: Texture instance 'OgreTerrain/1357558352/nm' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- WARNING: Texture instance 'OgreTerrain/1357558352/lm' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- WARNING: Texture instance 'TerrBlend1' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- Texture: dirt_grayrocky_diffusespecular.dds: Loading 1 faces(PF_DXT5,1024x1024x1) with 3 generated mipmaps from Image. Internal format is PF_DXT5,1024x1024x1.
- Texture: dirt_grayrocky_normalheight.dds: Loading 1 faces(PF_DXT5,1024x1024x1) with 3 generated mipmaps from Image. Internal format is PF_DXT5,1024x1024x1.
- Texture: grass_green-01_diffusespecular.dds: Loading 1 faces(PF_DXT5,1024x1024x1) with 3 generated mipmaps from Image. Internal format is PF_DXT5,1024x1024x1.
- Texture: grass_green-01_normalheight.dds: Loading 1 faces(PF_DXT5,1024x1024x1) with 3 generated mipmaps from Image. Internal format is PF_DXT5,1024x1024x1.
- Texture: growth_weirdfungus-03_diffusespecular.dds: Loading 1 faces(PF_DXT5,1024x1024x1) with 3 generated mipmaps from Image. Internal format is PF_DXT5,1024x1024x1.
- Texture: growth_weirdfungus-03_normalheight.dds: Loading 1 faces(PF_DXT5,1024x1024x1) with 3 generated mipmaps from Image. Internal format is PF_DXT5,1024x1024x1.
- WARNING: Texture instance 'OgreTerrain/1357558352/comp' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
- *** Terrain Vertex Program: OgreTerrain/1357558352/sm2/vp/comp ***
- struct v2p
- {
- float4 oPos : POSITION;
- float4 oPosObj : TEXCOORD0;
- float4 oUVMisc : TEXCOORD1; // xy = uv, z = camDepth
- float4 oUV0 : TEXCOORD2;
- float4 oUV1 : TEXCOORD3;
- float4 oLightSpacePos0 : TEXCOORD4 ;
- };
- v2p main_vp(
- float4 pos : POSITION,
- float2 uv : TEXCOORD0,
- uniform float4x4 worldMatrix,
- uniform float4x4 viewProjMatrix,
- uniform float2 lodMorph,
- uniform float4 uvMul_0
- )
- {
- float4 worldPos = mul(worldMatrix, pos);
- v2p output;
- output.oPosObj = pos;
- output.oUV0.xy = uv.xy * uvMul_0.r;
- output.oUV0.zw = uv.xy * uvMul_0.g;
- output.oUV1.xy = uv.xy * uvMul_0.b;
- output.oUV1.zw = uv.xy * uvMul_0.a;
- output.oPos = mul(viewProjMatrix, worldPos);
- output.oUVMisc.xy = uv.xy;
- return output;}
- *** ***
- *** Terrain Fragment Program: OgreTerrain/1357558352/sm2/fp/comp ***
- SamplerState g_SamLinear
- {
- Filter = MIN_MAG_MIP_LINEAR;
- AddressU = Wrap;
- AddressV = Wrap;
- };
- float4 expand(float4 v)
- {
- return v * 2 - 1;
- }
- struct v2p
- {
- float4 oPos : POSITION;
- float4 oPosObj : TEXCOORD0;
- float4 oUVMisc : TEXCOORD1; // xy = uv, z = camDepth
- float4 oUV0 : TEXCOORD2;
- float4 oUV1 : TEXCOORD3;
- float4 oLightSpacePos0 : TEXCOORD4 ;
- };
- Texture2D globalNormal : register(s0);
- Texture2D lightMap : register(s1);
- Texture2D blendTex0 : register(s2);
- Texture2D difftex0 : register(s3);
- Texture2D normtex0 : register(s4);
- Texture2D difftex1 : register(s5);
- Texture2D normtex1 : register(s6);
- Texture2D difftex2 : register(s7);
- Texture2D normtex2 : register(s8);
- float4 main_fp(
- v2p input,
- uniform float3 ambient,
- uniform float4 lightPosObjSpace,
- uniform float3 lightDiffuseColour,
- uniform float3 lightSpecularColour,
- uniform float3 eyePosObjSpace,
- uniform float4 scaleBiasSpecular
- ) : SV_Target
- {
- float4 outputCol;
- float shadow = 1.0;
- float2 uv = input.oUVMisc.xy;
- outputCol = float4(0,0,0,1);
- float3 normal = expand(globalNormal.Sample(g_SamLinear, uv)).rgb;
- float3 lightDir =
- lightPosObjSpace.xyz - (input.oPosObj.xyz * lightPosObjSpace.w);
- float3 eyeDir = eyePosObjSpace - input.oPosObj.xyz;
- float3 diffuse = float3(0,0,0);
- float specular = 0;
- float4 blendTexVal0 = blendTex0.Sample(g_SamLinear, uv);
- float3 tangent = float3(1, 0, 0);
- float3 binormal = normalize(cross(tangent, normal));
- tangent = normalize(cross(normal, binormal));
- float3x3 TBN = float3x3(tangent, binormal, normal);
- float4 litRes, litResLayer;
- float3 TSlightDir, TSeyeDir, TShalfAngle, TSnormal;
- float displacement;
- TSlightDir = normalize(mul(TBN, lightDir));
- TSeyeDir = normalize(mul(TBN, eyeDir));
- float2 uv0 = input.oUV0.xy;
- TSnormal = expand(normtex0.Sample(g_SamLinear, uv0)).rgb;
- TShalfAngle = normalize(TSlightDir + TSeyeDir);
- litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);
- litRes = litResLayer;
- float4 diffuseSpecTex0 = difftex0.Sample(g_SamLinear, uv0);
- diffuse = diffuseSpecTex0.rgb;
- specular = diffuseSpecTex0.a;
- float2 uv1 = input.oUV0.zw;
- TSnormal = expand(normtex1.Sample(g_SamLinear, uv1)).rgb;
- TShalfAngle = normalize(TSlightDir + TSeyeDir);
- litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);
- litRes = lerp(litRes, litResLayer, blendTexVal0.r);
- float4 diffuseSpecTex1 = difftex1.Sample(g_SamLinear, uv1);
- diffuse = lerp(diffuse, diffuseSpecTex1.rgb, blendTexVal0.r);
- specular = lerp(specular, diffuseSpecTex1.a, blendTexVal0.r);
- float2 uv2 = input.oUV1.xy;
- TSnormal = expand(normtex2.Sample(g_SamLinear, uv2)).rgb;
- TShalfAngle = normalize(TSlightDir + TSeyeDir);
- litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);
- litRes = lerp(litRes, litResLayer, blendTexVal0.g);
- float4 diffuseSpecTex2 = difftex2.Sample(g_SamLinear, uv2);
- diffuse = lerp(diffuse, diffuseSpecTex2.rgb, blendTexVal0.g);
- specular = lerp(specular, diffuseSpecTex2.a, blendTexVal0.g);
- shadow = lightMap.Sample(g_SamLinear, uv).r;
- outputCol.rgb += ambient.rgb * diffuse + litRes.y * lightDiffuseColour * diffuse * shadow;
- outputCol.a = shadow;
- return outputCol;
- }
- *** ***
- Creating viewport on target 'rtt/288349280/0/SceneManagerInstance2/compRTT', rendering from camera 'cam', relative dimensions 8192L: 0 T: 0 W: 1 H: 1 ZOrder: 0
- Viewport for camera 'cam', actual dimensions 8192L: 0 T: 0 W: 1024 H: 1024
- D3D11 ERROR: ID3D11DeviceContext::DrawIndexed: Rasterization Unit is enabled (PixelShader is not NULL or Depth/Stencil test is enabled and RasterizedStream is not D3D11_SO_NO_RASTERIZED_STREAM) but position is not provided by the last shader before the Rasterization Unit. [ EXECUTION ERROR #362: DEVICE_DRAW_POSITION_NOT_PRESENT]
- First-chance exception at 0x000007FEFDBF9E5D in SampleBrowser_d.exe: Microsoft C++ exception: Ogre::RenderingAPIException at memory location 0x0000000000BA9740.
- First-chance exception at 0x000007FEFDBF9E5D in SampleBrowser_d.exe: Microsoft C++ exception: Ogre::RenderingAPIException at memory location 0x0000000000BA9740.
- DefaultWorkQueueBase('Root') - PROCESS_REQUEST_START(2690): ID=3 channel=3 requestType=1
- DefaultWorkQueueBase('Root') - PROCESS_REQUEST_END(2690): ID=3 channel=3 requestType=1 processed=1
- DefaultWorkQueueBase('Root') - PROCESS_RESPONSE_START(thread:2658): ID=3 success=1 messages=[] channel=3 requestType=1
- First-chance exception at 0x000007FEFDBF9E5D in SampleBrowser_d.exe: Microsoft C++ exception: Ogre::RenderingAPIException at memory location 0x0000000000BA2BB0.
- First-chance exception at 0x000007FEFDBF9E5D in SampleBrowser_d.exe: Microsoft C++ exception: Ogre::RenderingAPIException at memory location 0x0000000000BA2BB0.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement