Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: samples/o3d-webgl-samples/hellocube.html

Issue 1687019: Fixed samples to work with resizing code introduced yesterday. Now the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 255 }
256 256
257 </script> 257 </script>
258 </head> 258 </head>
259 <body> 259 <body>
260 <h1>Hello Cube</h1> 260 <h1>Hello Cube</h1>
261 This example shows how to display a spinning red cube in O3D. 261 This example shows how to display a spinning red cube in O3D.
262 <br/> 262 <br/>
263 263
264 <!-- Start of O3D plugin --> 264 <!-- Start of O3D plugin -->
265 <div id="o3d" width="600px" height="600px"></div> 265 <div id="o3d" style="width: 600px; height: 600px;"></div>
266 <!-- End of O3D plugin --> 266 <!-- End of O3D plugin -->
267 267
268 <!-- Don't render the textarea --> 268 <!-- Don't render the textarea -->
269 <div style="display:none"> 269 <div style="display:none">
270 <!-- Start of effect --> 270 <!-- Start of effect -->
271 <textarea id="vshader"> 271 <textarea id="vshader">
272 // World View Projection matrix that will transform the input vertices 272 // World View Projection matrix that will transform the input vertices
273 // to screen space. 273 // to screen space.
274 attribute vec4 position; 274 attribute vec4 position;
275 275
(...skipping 15 matching lines...) Expand all
291 * This pixel shader just returns the color red. 291 * This pixel shader just returns the color red.
292 */ 292 */
293 void main() { 293 void main() {
294 gl_FragColor = vec4(1, 0, 0, 1); // Red. 294 gl_FragColor = vec4(1, 0, 0, 1); // Red.
295 } 295 }
296 </textarea> 296 </textarea>
297 <!-- End of effect --> 297 <!-- End of effect -->
298 </div> 298 </div>
299 </body> 299 </body>
300 </html> 300 </html>
OLDNEW
« no previous file with comments | « no previous file | samples/o3d-webgl-samples/hellocube-colors.html » ('j') | samples/o3d-webgl/pack.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698