This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from KhronosGroup/ClearCoatCarbonFibre
Clear Coat Carbon Fibre
- Loading branch information
Showing
10 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Carbon Fibre | ||
|
||
## Screenshot | ||
|
||
![screenshot](screenshot/screenshot_large.jpg) | ||
|
||
Screenshot from the [glTF Sample Viewer](https://github.khronos.org/glTF-Sample-Viewer-Release/) with the Wide Street environment light. | ||
|
||
## Description | ||
|
||
This model is a sphere using the glTF extension [`KHR_materials_anisotropy`](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_anisotropy) to create a carbon fibre material. | ||
|
||
The normalTexture is a higher resolution than the others to preserve more details in the shapes of individual fibres. The anisotropyTexture could in theory be only 4x4 pixels however that tends to introduce upscale artifacts. | ||
|
||
![textures](screenshot/textures.jpg) | ||
|
||
|
||
## License Information | ||
|
||
(C) 2023, Wayfair LLC. CC-BY 4.0 International https://creativecommons.org/licenses/by/4.0/. Model and textures created by Eric Chadwick. |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
{ | ||
"asset": { | ||
"version": "2.0", | ||
"generator": "3ds Max, Max2Babylon, Visual Studio Code, glTF Tools", | ||
"copyright": "(C) 2023, Wayfair LLC. CC-BY 4.0 International https://creativecommons.org/licenses/by/4.0/. Model and textures created by Eric Chadwick." | ||
}, | ||
"scene": 0, | ||
"scenes": [ | ||
{ | ||
"nodes": [ | ||
0 | ||
] | ||
} | ||
], | ||
"nodes": [ | ||
{ | ||
"mesh": 0, | ||
"translation": [ | ||
0.0, | ||
0.5, | ||
0.0 | ||
], | ||
"name": "CarbonFibre" | ||
} | ||
], | ||
"meshes": [ | ||
{ | ||
"primitives": [ | ||
{ | ||
"attributes": { | ||
"POSITION": 1, | ||
"NORMAL": 2, | ||
"TEXCOORD_0": 3 | ||
}, | ||
"indices": 0, | ||
"material": 0 | ||
} | ||
], | ||
"name": "CarbonFibre" | ||
} | ||
], | ||
"accessors": [ | ||
{ | ||
"bufferView": 0, | ||
"componentType": 5123, | ||
"count": 11904, | ||
"type": "SCALAR", | ||
"name": "accessorIndices" | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"componentType": 5126, | ||
"count": 2129, | ||
"max": [ | ||
0.5, | ||
0.5, | ||
0.5 | ||
], | ||
"min": [ | ||
-0.5, | ||
-0.5, | ||
-0.5 | ||
], | ||
"type": "VEC3", | ||
"name": "accessorPositions" | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 25548, | ||
"componentType": 5126, | ||
"count": 2129, | ||
"type": "VEC3", | ||
"name": "accessorNormals" | ||
}, | ||
{ | ||
"bufferView": 2, | ||
"componentType": 5126, | ||
"count": 2129, | ||
"type": "VEC2", | ||
"name": "accessorUVs" | ||
} | ||
], | ||
"bufferViews": [ | ||
{ | ||
"buffer": 0, | ||
"byteLength": 23808, | ||
"name": "bufferViewScalar", | ||
"target": 34963 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteOffset": 23808, | ||
"byteLength": 51096, | ||
"byteStride": 12, | ||
"name": "bufferViewFloatVec3", | ||
"target": 34962 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteOffset": 74904, | ||
"byteLength": 17032, | ||
"byteStride": 8, | ||
"name": "bufferViewFloatVec2", | ||
"target": 34962 | ||
} | ||
], | ||
"buffers": [ | ||
{ | ||
"uri": "CarbonFibre.bin", | ||
"byteLength": 91936 | ||
} | ||
], | ||
"extensionsUsed": [ | ||
"KHR_materials_anisotropy" | ||
], | ||
"images": [ | ||
{ | ||
"uri": "CarbonFibre_occlusion.png" | ||
}, | ||
{ | ||
"uri": "CarbonFibre_normal.png" | ||
}, | ||
{ | ||
"uri": "CarbonFibre_anisotropy.png" | ||
} | ||
], | ||
"textures": [ | ||
{ | ||
"name": "CarbonFibre_occlusion.png", | ||
"sampler": 0, | ||
"source": 0 | ||
}, | ||
{ | ||
"name": "CarbonFibre_normal.png", | ||
"sampler": 0, | ||
"source": 1 | ||
}, | ||
{ | ||
"name": "CarbonFibre_anisotropy.png", | ||
"sampler": 0, | ||
"source": 2 | ||
} | ||
], | ||
"materials": [ | ||
{ | ||
"name": "CarbonFibre", | ||
"pbrMetallicRoughness": { | ||
"baseColorFactor": [ | ||
0.009, | ||
0.009, | ||
0.009, | ||
1.0 | ||
], | ||
"metallicFactor": 0, | ||
"roughnessFactor": 0.4 | ||
}, | ||
"normalTexture": { | ||
"index": 1, | ||
"scale": 2 | ||
}, | ||
"occlusionTexture": { | ||
"index": 0 | ||
}, | ||
"extensions": { | ||
"KHR_materials_anisotropy": { | ||
"anisotropyStrength": 0.5, | ||
"anisotropyRotation": 0, | ||
"anisotropyTexture": { | ||
"index": 2 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"samplers": [ | ||
{ | ||
"magFilter": 9729, | ||
"minFilter": 9987 | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.