| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2009, Google Inc. | 2 Copyright 2009, Google Inc. |
| 3 All rights reserved. | 3 All rights reserved. |
| 4 | 4 |
| 5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
| 6 modification, are permitted provided that the following conditions are | 6 modification, are permitted provided that the following conditions are |
| 7 met: | 7 met: |
| 8 | 8 |
| 9 * Redistributions of source code must retain the above copyright | 9 * Redistributions of source code must retain the above copyright |
| 10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 convEffect.loadFromFXString(convFXString); | 175 convEffect.loadFromFXString(convFXString); |
| 176 | 176 |
| 177 var convMaterial = g_pack.createObject('Material'); | 177 var convMaterial = g_pack.createObject('Material'); |
| 178 convMaterial.drawList = viewInfo.performanceDrawList; | 178 convMaterial.drawList = viewInfo.performanceDrawList; |
| 179 convMaterial.effect = convEffect; | 179 convMaterial.effect = convEffect; |
| 180 convEffect.createUniformParameters(convMaterial); | 180 convEffect.createUniformParameters(convMaterial); |
| 181 return convMaterial; | 181 return convMaterial; |
| 182 } | 182 } |
| 183 | 183 |
| 184 function createRenderSurfaceSet(texture) { | 184 function createRenderSurfaceSet(texture) { |
| 185 var renderSurface = texture.getRenderSurface(0, g_pack); | 185 var renderSurface = texture.getRenderSurface(0); |
| 186 | 186 |
| 187 // Create the depth-stencil buffer required when rendering this pass. | 187 // Create the depth-stencil buffer required when rendering this pass. |
| 188 var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH, | 188 var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH, |
| 189 RENDER_TARGET_HEIGHT); | 189 RENDER_TARGET_HEIGHT); |
| 190 | 190 |
| 191 var renderSurfaceSet = g_pack.createObject('RenderSurfaceSet'); | 191 var renderSurfaceSet = g_pack.createObject('RenderSurfaceSet'); |
| 192 renderSurfaceSet.renderSurface = renderSurface; | 192 renderSurfaceSet.renderSurface = renderSurface; |
| 193 renderSurfaceSet.renderDepthStencilSurface = depthSurface; | 193 renderSurfaceSet.renderDepthStencilSurface = depthSurface; |
| 194 renderSurfaceSet.parent = g_client.renderGraphRoot; | 194 renderSurfaceSet.parent = g_client.renderGraphRoot; |
| 195 return renderSurfaceSet; | 195 return renderSurfaceSet; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 } | 333 } |
| 334 | 334 |
| 335 // #o3d VertexShaderEntryPoint SobelVS | 335 // #o3d VertexShaderEntryPoint SobelVS |
| 336 // #o3d PixelShaderEntryPoint SobelPS | 336 // #o3d PixelShaderEntryPoint SobelPS |
| 337 // #o3d MatrixLoadOrder RowMajor | 337 // #o3d MatrixLoadOrder RowMajor |
| 338 </textarea> | 338 </textarea> |
| 339 </div> | 339 </div> |
| 340 </body> | 340 </body> |
| 341 | 341 |
| 342 </html> | 342 </html> |
| OLD | NEW |