* debugging PCF mode This mode always uses a hard PCF and takes a slightly slower code path. * dynamic shadowmap visualization The directional shadowmap visualizer is implemented behind a specialization constant. Add the DebugRegistry infrastructure to be able to update the spec-constant at runtime and have a subset of all materials invalidated. This allows to toggle the visualization at runtime using a debug property. This is also a proof of concept that we can update spec-constants at runtime; we could probably leverage this work for engine-wide shader configurations. * Update main.fs * Update filament/src/details/Material.cpp Co-authored-by: Powei Feng <powei@google.com> --------- Co-authored-by: Powei Feng <powei@google.com>
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
// This file has been generated by beamsplitter
|
|
|
|
#include <emscripten.h>
|
|
#include <emscripten/bind.h>
|
|
|
|
#include <filament/View.h>
|
|
|
|
using namespace emscripten;
|
|
using namespace filament;
|
|
|
|
EMSCRIPTEN_BINDINGS(jsenums_generated) {
|
|
|
|
enum_<View::QualityLevel>("View$QualityLevel")
|
|
.value("LOW", View::QualityLevel::LOW)
|
|
.value("MEDIUM", View::QualityLevel::MEDIUM)
|
|
.value("HIGH", View::QualityLevel::HIGH)
|
|
.value("ULTRA", View::QualityLevel::ULTRA)
|
|
;
|
|
|
|
enum_<View::BlendMode>("View$BlendMode")
|
|
.value("OPAQUE", View::BlendMode::OPAQUE)
|
|
.value("TRANSLUCENT", View::BlendMode::TRANSLUCENT)
|
|
;
|
|
|
|
enum_<View::BloomOptions::BlendMode>("View$BloomOptions$BlendMode")
|
|
.value("ADD", View::BloomOptions::BlendMode::ADD)
|
|
.value("INTERPOLATE", View::BloomOptions::BlendMode::INTERPOLATE)
|
|
;
|
|
|
|
enum_<View::DepthOfFieldOptions::Filter>("View$DepthOfFieldOptions$Filter")
|
|
.value("NONE", View::DepthOfFieldOptions::Filter::NONE)
|
|
.value("UNUSED", View::DepthOfFieldOptions::Filter::UNUSED)
|
|
.value("MEDIAN", View::DepthOfFieldOptions::Filter::MEDIAN)
|
|
;
|
|
|
|
enum_<View::AntiAliasing>("View$AntiAliasing")
|
|
.value("NONE", View::AntiAliasing::NONE)
|
|
.value("FXAA", View::AntiAliasing::FXAA)
|
|
;
|
|
|
|
enum_<View::Dithering>("View$Dithering")
|
|
.value("NONE", View::Dithering::NONE)
|
|
.value("TEMPORAL", View::Dithering::TEMPORAL)
|
|
;
|
|
|
|
enum_<View::ShadowType>("View$ShadowType")
|
|
.value("PCF", View::ShadowType::PCF)
|
|
.value("VSM", View::ShadowType::VSM)
|
|
.value("DPCF", View::ShadowType::DPCF)
|
|
.value("PCSS", View::ShadowType::PCSS)
|
|
.value("PCFd", View::ShadowType::PCFd)
|
|
;
|
|
|
|
} // EMSCRIPTEN_BINDINGS
|