| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<title>Filament Debugger</title> |
| 5 |
<meta charset="utf-8"> |
| 6 |
<link rel="icon" type="image/png" href="https://google.github.io/filament/favicon.png" /> |
| 7 |
<link href="https://fonts.googleapis.com/css?family=Lexend Deca" rel="stylesheet"> |
| 8 |
<link rel="stylesheet" href="style.css"> |
| 9 |
</head> |
| 10 |
<body class="vbox viewport"> |
| 11 |
|
| 12 |
<header>matdbg</header> |
| 13 |
|
| 14 |
<section class="main hbox space-between"> |
| 15 |
<nav class="vbox"> |
| 16 |
<div id="material-list" class="scrollable squishy"> |
| 17 |
</div> |
| 18 |
<div id="material-detail" class="scrollable stretchy"> |
| 19 |
</div> |
| 20 |
</nav> |
| 21 |
<article id="shader-source"> |
| 22 |
</article> |
| 23 |
</section> |
| 24 |
|
| 25 |
<footer> </footer> |
| 26 |
|
| 27 |
<template id="material-list-template"> |
| 28 |
<div style="white-space: nowrap"> |
| 29 |
{{#item}} |
| 30 |
{{#is_label}} |
| 31 |
<br/><b>{{label}}</b> |
| 32 |
{{/is_label}} |
| 33 |
{{#is_material}} |
| 34 |
<a class="material {{classes}}" data-matid="{{matid}}">{{name}}</a> |
| 35 |
{{/is_material}} |
| 36 |
<br/> |
| 37 |
{{/item}} |
| 38 |
</div> |
| 39 |
</template> |
| 40 |
|
| 41 |
<template id="material-detail-template"> |
| 42 |
<div style="white-space: pre"> |
| 43 |
name = {{ name }} |
| 44 |
version = {{ version }} |
| 45 |
{{#required_attributes.length}} |
| 46 |
|
| 47 |
<b>Required attributes</b> |
| 48 |
{{#required_attributes}} |
| 49 |
{{.}} |
| 50 |
{{/required_attributes}} |
| 51 |
{{/required_attributes.length}} |
| 52 |
|
| 53 |
<b>OpenGL shaders</b> |
| 54 |
{{#opengl}} |
| 55 |
<a class="shader {{classes}}" data-glindex="{{index}}">{{index}} {{shaderModel}} {{pipelineStage}} {{variantString}}</a> |
| 56 |
{{/opengl}} |
| 57 |
|
| 58 |
<b>Vulkan shaders</b> |
| 59 |
{{#vulkan}} |
| 60 |
<a class="shader {{classes}}" data-vkindex="{{index}}">{{index}} {{shaderModel}} {{pipelineStage}} {{variantString}}</a> |
| 61 |
{{/vulkan}} |
| 62 |
|
| 63 |
<b>Metal shaders</b> |
| 64 |
{{#metal}} |
| 65 |
<a class="shader {{classes}}" data-metalindex="{{index}}">{{index}} {{shaderModel}} {{pipelineStage}} {{variantString}}</a> |
| 66 |
{{/metal}} |
| 67 |
|
| 68 |
<b>Material details</b> |
| 69 |
{{#shading}} |
| 70 |
shading model = {{model}} |
| 71 |
vertex domain = {{vertex_domain}} |
| 72 |
interpolation = {{interpolation}} |
| 73 |
shadow multiply = {{shadow_multiply}} |
| 74 |
specular antialiasing = {{specular_antialiasing}} |
| 75 |
variance = {{variance}} |
| 76 |
threshold = {{threshold}} |
| 77 |
clear coat IOR change = {{clear_coat_IOR_change}} |
| 78 |
{{/shading}} |
| 79 |
{{#raster}} |
| 80 |
blending = {{blending}} |
| 81 |
mask threshold = {{mask_threshold}} |
| 82 |
color write = {{color_write}} |
| 83 |
depth write = {{depth_write}} |
| 84 |
depth test = {{depth_test}} |
| 85 |
double sided = {{double_sided}} |
| 86 |
culling = {{culling}} |
| 87 |
transparency = {{transparency}} |
| 88 |
{{/raster}} |
| 89 |
</div> |
| 90 |
</template> |
| 91 |
|
| 92 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/3.0.1/mustache.min.js"></script> |
| 93 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.17.1/min/vs/loader.js"></script> |
| 94 |
<script src="script.js"></script> |
| 95 |
</body> |
| 96 |
</html> |