[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Some WebGL draft feedback

Hi Chris, All,

Perhaps we should propose and register some mime-types. Can you do a 3 level mime-type as in text/shader/{vertex,fragment} or text/glsles/{vertex,fragment}? Is it useful at the _javascript_ level to be able to identify vertex vs. fragment shaders by mime-type or would text/glsles be sufficient?



Chris Marrin wrote:

On Dec 23, 2009, at 12:34 PM, Carl van Heezik wrote:
I have some questions about the <script> tag for including vertex / fragment shaders in the webpage. I see in the apple demo’s that they use “x-shader/x-vertex” and “x-shader/x-fragment” as script type. Is this the proposed standard type? I would prefer something like “text/glsl” or “text/shader” because its looks more like the existing “text/_javascript_” type.
We are not proposing any mime-types for this. using a mime-type preceeded by 'x-' indicates an experimental type. I am just using it to identify the type of the content of the script.

fn:Mark Callow
org:HI Corporation;Graphics Lab, Research & Development
adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan
title:Chief Architect
tel;work:+81 3 3710 9367 x228
tel;fax:+81 3 5773 8660
url:http://www.hicorp.co.jp,  http://www.mascotcapsule.com