Add glTF PBR model loading
authorLuke Lau <luke_lau@icloud.com>
Tue, 20 Nov 2018 03:33:54 +0000 (03:33 +0000)
committerLuke Lau <luke_lau@icloud.com>
Tue, 20 Nov 2018 03:33:54 +0000 (03:33 +0000)
commit0291188124d08368ce28b308482604218bd75393
tree8a6cab6bce52397c719d40cce4cd9985bb8dd4f5
parentd80972d96e5fcd444657f937ab2700039efa83d2
Add glTF PBR model loading

Roughness and metallic are now one texture
Improve image format()/internalformat()/type()
Add script for converting metallic+roughness textures to
metallicroughness
47 files changed:
image.cpp
image.hpp
main.cpp
material.cpp
material.hpp
metallicroughness.py [new file with mode: 0755]
model.cpp
models/greasy-pan-2-albedo.png [new file with mode: 0644]
models/greasy-pan-2-ao.png [moved from models/rustedIron/rustediron2_ao.png with 100% similarity]
models/greasy-pan-2-metallicroughness.png [new file with mode: 0644]
models/greasy-pan-2-normal.png [new file with mode: 0644]
models/materials/darktiles/About these PBR files.txt [moved from models/darktiles/About these PBR files.txt with 100% similarity]
models/materials/darktiles/darktiles1_AO.png [moved from models/darktiles/darktiles1_AO.png with 100% similarity]
models/materials/darktiles/darktiles1_basecolor.png [moved from models/darktiles/darktiles1_basecolor.png with 100% similarity]
models/materials/darktiles/darktiles1_metallic.png [moved from models/darktiles/darktiles1_metallic.png with 100% similarity]
models/materials/darktiles/darktiles1_normal.png [moved from models/darktiles/darktiles1_normal.png with 100% similarity]
models/materials/darktiles/darktiles1_roughness.png [moved from models/darktiles/darktiles1_roughness.png with 100% similarity]
models/materials/greasy-pan-2/About these PBR files.txt [moved from models/rustedIron/About these PBR files.txt with 100% similarity]
models/materials/greasy-pan-2/greasy-pan-2-albedo.png [new file with mode: 0755]
models/materials/greasy-pan-2/greasy-pan-2-ao.png [moved from models/streakedmetal/streakedmetal_ao.png with 100% similarity]
models/materials/greasy-pan-2/greasy-pan-2-metal.png [new file with mode: 0644]
models/materials/greasy-pan-2/greasy-pan-2-metal.psd [new file with mode: 0755]
models/materials/greasy-pan-2/greasy-pan-2-metallicroughness.png [new file with mode: 0644]
models/materials/greasy-pan-2/greasy-pan-2-normal.png [new file with mode: 0755]
models/materials/greasy-pan-2/greasy-pan-2-roughness.png [moved from models/streakedmetal/streakedmetal_roughness.png with 100% similarity]
models/materials/rustedIron/About these PBR files.txt [moved from models/streakedmetal/About these PBR files.txt with 100% similarity]
models/materials/rustedIron/rustediron2_ao.png [new file with mode: 0644]
models/materials/rustedIron/rustediron2_basecolor.png [moved from models/rustedIron/rustediron2_basecolor.png with 100% similarity]
models/materials/rustedIron/rustediron2_metallic.png [moved from models/rustedIron/rustediron2_metallic.png with 100% similarity]
models/materials/rustedIron/rustediron2_normal.png [moved from models/rustedIron/rustediron2_normal.png with 100% similarity]
models/materials/rustedIron/rustediron2_roughness.png [moved from models/rustedIron/rustediron2_roughness.png with 100% similarity]
models/materials/streakedmetal/About these PBR files.txt [new file with mode: 0755]
models/materials/streakedmetal/streakedmetal-albedo.png [moved from models/streakedmetal/streakedmetal_albedo.png with 100% similarity]
models/materials/streakedmetal/streakedmetal-ao.png [new file with mode: 0644]
models/materials/streakedmetal/streakedmetal-metallicroughness.png [new file with mode: 0644]
models/materials/streakedmetal/streakedmetal-metalness.png [moved from models/streakedmetal/streakedmetal_metalness.png with 100% similarity]
models/materials/streakedmetal/streakedmetal-normal.png [moved from models/streakedmetal/streakedmetal_normal.png with 100% similarity]
models/materials/streakedmetal/streakedmetal-roughness.png [new file with mode: 0755]
models/metalSphere.dae [new file with mode: 0644]
models/sphereMetal.bin [new file with mode: 0644]
models/sphereMetal.blend [new file with mode: 0644]
models/sphereMetal.gltf [new file with mode: 0644]
models/streakedmetal-albedo.png [new file with mode: 0644]
models/streakedmetal-ao.png [new file with mode: 0644]
models/streakedmetal-metallicroughness.png [new file with mode: 0644]
models/streakedmetal-normal.png [new file with mode: 0644]
pbrfrag.glsl