Skip to content

Commit

Permalink
feat: support IBL for terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Jun 28, 2023
1 parent 4b79e9d commit baad01d
Show file tree
Hide file tree
Showing 14 changed files with 935 additions and 9 deletions.
7 changes: 7 additions & 0 deletions web/src/beta/lib/core/Map/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,13 @@ export type TerrainProperty = {
terrainCesiumIonAccessToken?: string;
terrainCesiumIonUrl?: string;
terrainUrl?: string;
terrainNormal?: boolean;
};

export type SceneProperty = {
debugs?: {
debugSphericalHarmonicCoefficients: boolean;
};
default?: {
camera?: Camera;
allowEnterGround?: boolean;
Expand Down Expand Up @@ -293,6 +297,9 @@ export type SceneProperty = {
brightness_shift?: number;
hue_shift?: number;
surturation_shift?: number;
sphericalHarmonicCoefficients?: { x: number; y: number; z: number }[];
globeShadowDarkness?: number;
globeImageBasedLighting?: boolean;
};
timeline?: {
animation?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { toColor } from "@reearth/beta/utils/value";

import type { ModelAppearance } from "../../..";
import { colorBlendMode, heightReference, shadowMode } from "../../common";
import { NonPBRLightingShader } from "../../CustomShaders/NonPBRLightingShader";
import { NonPBRLightingShader } from "../../Shaders/CustomShaders/NonPBRLightingShader";
import {
EntityExt,
extractSimpleLayerData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Cesium3DTileset } from "resium";

import type { Cesium3DTilesAppearance, ComputedLayer } from "../../..";
import { colorBlendModeFor3DTile, shadowMode } from "../../common";
import { NonPBRLightingShader } from "../../CustomShaders/NonPBRLightingShader";
import { NonPBRLightingShader } from "../../Shaders/CustomShaders/NonPBRLightingShader";
import Box from "../Box";
import { type FeatureComponentConfig, type FeatureProps } from "../utils";

Expand Down
Loading

0 comments on commit baad01d

Please sign in to comment.