Comments (11)
glTF is for OpenGL, OpenGL ES, and WebGL. Although, as the creators, we all have a WebGL bias, we should not impose these pseudo-shader-conventions.
The x-
prefix in x-shader/x-fragment
and x-shader/x-vertex
are not useful in the content of glTF. These properties refer to other glTF properties. These are not psuedo-mime-types like how the x-
names are conventionally used. They are equivalent to referencing a COLLADA id
.
The names I proposed are widely used, but I now propose that VERTEX_SHADER
and FRAGMENT_SHADER
are better because they correspond directly to createShader, which is one of the GL functions that will be called to process this part of glTF.
from gltf.
Gotcha. I was indeed biased by WebGL here. I'll update the converter / viewer shortly with this.
from gltf.
OK, I'll update the spec and schema with VERTEX_SHADER
and FRAGMENT_SHADER
.
from gltf.
Updated. 4668c12
from gltf.
Updated 4b3fd4b
from gltf.
@pjcozzi heads up: you were suggesting in #92 that FRAGMENT_SHADER and VERTEX_SHADER should be renamed, please re-check this issue for the original reason.
from gltf.
I've reviewed this and still think we should prefer fragmentShader
over FRAGMENT_SHADER
, and vertexShader
over VERTEX_SHADER
.
from gltf.
re-opening this then ;)
@pjcozzi it's fine with me too to name as you prefer. Please update the SPEC, I will take care of the code.
from gltf.
Renamed in d47f6a3.
Changing issue label to converter.
from gltf.
Actually I can't change the label right now due to some network issues.
from gltf.
from gltf.
Related Issues (20)
- Is it possible to add axis convention hint in file header ? HOT 1
- Why is the official capitalization glTF instead of GLTF? HOT 3
- MSFT_texture_dds: behaviour for unreachable or incorrect dds files
- Can GLTF model structure be customized with additional properties? HOT 3
- FB_geometry_metadata: Clarify meaning of "primitiveCount"
- Define a way to provide unique identifiers for glTF data (nodes/etc) HOT 72
- `KHR_materials_volume`: clarify that the calculation of the attenuation coefficient uses a natural logarithm
- Converting SpecularGlossiness back to MetallicRoughness HOT 2
- Request for KITTYCAD vendor prefix
- Would you please consider adding makeSEA+Catapult to your list of viewing applications? HOT 1
- How to convert 3d face coordinates into gltf ? HOT 1
- Length unit clarification HOT 2
- Coordinate System and Units HOT 2
- KHR_draco_mesh_compression and triangle strips HOT 1
- how to use this project? HOT 1
- typo in pbr.frag
- Re-using materials on meshes with different attributes HOT 3
- Accessor zero-initialization: Allow default-initialization? HOT 2
- Add ENVOKE vendor prefix
- glTF2 'sparse' object has redundancy in its indices object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltf.