Commit b5ad5f1f authored by iSergio's avatar iSergio
Browse files

Remove experimental. Need check official docs by this.

parent c4997481
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -138,6 +138,14 @@ public class BillboardGraphicsOptions {
     */
    @JsProperty
    public Property heightReference;
    /**
     * Gets or sets the distance from the camera at which to disable the depth test
     * to, for example, prevent clipping against terrain. When set to zero, the
     * depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth
     * test is never applied. Default: 0.0
     */
    @JsProperty
    public Property disableDepthTestDistance;
    /**
     * A Property specifying at what distance from the camera that this billboard
     * will be displayed.
+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import org.cesiumjs.cs.promise.Promise;
import org.cesiumjs.cs.scene.enums.Cesium3DTileColorBlendMode;
import org.cesiumjs.cs.scene.enums.ClassificationType;
import org.cesiumjs.cs.scene.enums.SplitDirection;
import org.cesiumjs.cs.scene.experimental.CustomShader;
import org.cesiumjs.cs.scene.options.Cesium3DTilesetOptions;

/**
+46 −4
Original line number Diff line number Diff line
/*
 * Copyright 2021 iserge, Gis4Fun.
 * Copyright 2022 iSergio, Gis4Fun.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -14,17 +14,59 @@
 * limitations under the License.
 */

package org.cesiumjs.cs.scene.experimental;
package org.cesiumjs.cs.scene;

import jsinterop.annotations.*;
import org.cesiumjs.cs.core.*;
import org.cesiumjs.cs.scene.experimental.options.CustomShaderOptions;
import org.cesiumjs.cs.js.JsObject;
import org.cesiumjs.cs.scene.enums.CustomShaderTranslucencyMode;
import org.cesiumjs.cs.scene.options.CustomShaderOptions;

/**
 * A user defined GLSL shader used with {@link ModelExperimental} as well as {@link org.cesiumjs.cs.scene.Cesium3DTileset}.
 * A user defined GLSL shader used with {@link Model} as well as {@link org.cesiumjs.cs.scene.Cesium3DTileset}.
 */
@JsType(isNative = true, namespace = "Cesium", name = "CustomShader")
public class CustomShader {
    /**
     * The user-defined GLSL code for the fragment shader
     */
    @JsProperty(name = "fragmentShaderText")
    public native String fragmentShaderText();
    /**
     * The lighting model to use when using the custom shader. This is used by CustomShaderPipelineStage
     */
    @JsProperty(name = "lightingModel")
    public native Number lightingModel();
    /**
     * A value determining how the custom shader interacts with the overall fragment shader. This is used by CustomShaderPipelineStage
     */
    @JsProperty(name = "mode")
    public native Number mode();
    /**
     * The translucency mode, which determines how the custom shader will be applied. If the value is
     * {@link CustomShaderTranslucencyMode#OPAQUE} or {@link CustomShaderTranslucencyMode#TRANSLUCENT}, the custom shader will
     * override settings from the model's material. If the value is {@link CustomShaderTranslucencyMode#INHERIT},
     * the custom shader will render as either opaque or translucent depending on the primitive's material settings.
     * Default: {@link CustomShaderTranslucencyMode#INHERIT()}
     */
    @JsProperty(name = "translucencyMode")
    public native Number translucencyMode();
    /**
     * Additional uniforms as declared by the user.
     */
    @JsProperty(name = "uniforms")
    public native JsObject uniforms();
    /**
     * Additional varyings as declared by the user. This is used by CustomShaderPipelineStage
     */
    @JsProperty(name = "varyings")
    public native JsObject varyings();
    /**
     * The user-defined GLSL code for the vertex shader
     */
    @JsProperty(name = "vertexShaderText")
    public native String vertexShaderText();

    @JsConstructor
    public CustomShader(CustomShaderOptions options) {}

+4 −5
Original line number Diff line number Diff line
/*
 * Copyright 2022 iserge, Gis4Fun.
 * Copyright 2022 iSergio, Gis4Fun.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -14,19 +14,18 @@
 * limitations under the License.
 */

package org.cesiumjs.cs.scene.experimental;
package org.cesiumjs.cs.scene;

import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.core.Cartesian2;
import org.cesiumjs.cs.core.Color;
import org.cesiumjs.cs.js.JsArray;
import org.cesiumjs.cs.scene.experimental.options.ModelFeatureOptions;
import org.cesiumjs.cs.scene.options.ModelFeatureOptions;

/**
 * A feature of a {@link ModelExperimental}.
 * A feature of a {@link Model}.
 * Provides access to a feature's properties stored in the model's feature table.
 *
 * Modifications to a ModelFeature object have the lifetime of the model.
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright 2021 iserge, Gis4Fun.
 * Copyright 2022 iSergio, Gis4Fun.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package org.cesiumjs.cs.scene.experimental;
package org.cesiumjs.cs.scene;

import com.google.gwt.typedarrays.shared.Uint8Array;
import jsinterop.annotations.JsConstructor;
@@ -24,7 +24,7 @@ import jsinterop.annotations.JsType;
import org.cesiumjs.cs.core.Resource;
import org.cesiumjs.cs.core.enums.PixelDatatype;
import org.cesiumjs.cs.core.enums.PixelFormat;
import org.cesiumjs.cs.scene.experimental.options.TextureUniformOptions;
import org.cesiumjs.cs.scene.options.TextureUniformOptions;

/**
 * A simple struct that serves as a value of a sampler2D-valued uniform.
Loading