docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
if (condition._evaluationId === currentRenderId) {
if (!condition._currentResult) { | <mask> Action.prototype._executeCurrent = function (evt) {
<mask> if (this._condition) {
<mask> var currentRenderId = this._actionManager.getScene().getRenderId();
<mask> // We cache the current evaluation for the current frame
<mask> if (this._co... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/56d0f7df773d7bbecbeda7b726301e5255c61796 | babylon.2.1-alpha.debug.js |
condition._evaluationId = currentRenderId;
if (!condition.isValid()) {
condition._currentResult = false; | <mask> return;
<mask> }
<mask> }
<mask> else {
<mask> this._condition._evaluationId = currentRenderId;
<mask> if (!this._condition.isValid()) {
<mask> this._condition._curre... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/56d0f7df773d7bbecbeda7b726301e5255c61796 | babylon.2.1-alpha.debug.js |
condition._currentResult = true; | <mask> if (!this._condition.isValid()) {
<mask> this._condition._currentResult = false;
<mask> return;
<mask> }
<mask> this._condition._currentResult = true;
<mask> }
<mask> }
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/56d0f7df773d7bbecbeda7b726301e5255c61796 | babylon.2.1-alpha.debug.js |
this._generateCheckBox(this._optionsSubsetDiv, "Sprites", this._scene.spritesEnabled, function (element) {
_this._scene.spritesEnabled = element.checked;
}); | <mask> });
<mask> this._generateCheckBox(this._optionsSubsetDiv, "Skeletons", this._scene.skeletonsEnabled, function (element) {
<mask> _this._scene.skeletonsEnabled = element.checked;
<mask> });
<mask> this._generateCheckBox(this.... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/56d0f7df773d7bbecbeda7b726301e5255c61796 | babylon.2.1-alpha.debug.js |
selectionComponent?: WebXRControllerComponent;
onButtonChangedObserver?: Nullable<Observer<WebXRControllerComponent>>;
| <mask> [controllerUniqueId: string]: {
<mask> xrController?: WebXRInputSource;
<mask> squeezeComponent?: WebXRControllerComponent;
<mask> onSqueezeButtonChangedObserver?: Nullable<Observer<WebXRControllerComponent>>;
<mask> onFrameObserver?: Nullable<Observer... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5748ca19cb783411a65ec9a9fde7e87bddafb179 | src/XR/features/WebXRNearInteraction.ts |
// use the select and squeeze events
const selectStartListener = (event: XRInputSourceEvent) => {
if (controllerData.xrController && event.inputSource === controllerData.xrController.inputSource && controllerData.pick) {
controllerData.nearGrabInProcess = t... | <mask> } else {
<mask> xrController.onMotionControllerInitObservable.add(init);
<mask> }
<mask> } else {
<mask> // use squeeze events if any
<mask> }
<mask> }
<mask>
<mask> private _detachController(xrControllerUniqueId: string) {
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5748ca19cb783411a65ec9a9fde7e87bddafb179 | src/XR/features/WebXRNearInteraction.ts |
if (controllerData.selectionComponent) {
if (controllerData.onButtonChangedObserver) {
controllerData.selectionComponent.onButtonStateChangedObservable.remove(controllerData.onButtonChangedObserver);
}
}
| <mask> controllerData.squeezeComponent.onButtonStateChangedObservable.remove(controllerData.onSqueezeButtonChangedObserver);
<mask> }
<mask> }
<mask> if (controllerData.onFrameObserver) {
<mask> this._xrSessionManager.onXRFrameObservable.remove(controllerData... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5748ca19cb783411a65ec9a9fde7e87bddafb179 | src/XR/features/WebXRNearInteraction.ts |
}
| <mask> result.teleportation.setSelectionFeature(result.pointerSelection);
<mask> }
<mask>
<mask> if (!options.disableNearInteraction) {
<mask> // Add default pointer selection
<mask> result.nearInteraction = <WebX... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5748ca19cb783411a65ec9a9fde7e87bddafb179 | src/XR/webXRDefaultExperience.ts |
if (!options.disableNearInteraction) {
// Add default pointer selection
result.nearInteraction = <WebXRNearInteraction>result.baseExperience.featuresManager.enableFeature(WebXRNearInteraction.Name, options.useStablePlugins ? "stable" : "latest", <IWebXRNearInter... | <mask> });
<mask> result.teleportation.setSelectionFeature(result.pointerSelection);
<mask> }
<mask>
<mask> if (!options.disableNearInteraction) {
<mask> // Add default pointer selection
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5748ca19cb783411a65ec9a9fde7e87bddafb179 | src/XR/webXRDefaultExperience.ts |
grid-template-rows: 100%;
grid-template-columns: calc(100% - 40px) 20px 20px;
| <mask> text-align: center;
<mask> display: grid;
<mask> align-content: center;
<mask> overflow: hidden;
<mask> margin: -4px;
<mask> border: rgba(72, 72, 72, 1) solid 4px;
<mask> border-bottom: 0;
<mas... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/graphCanvas.scss |
private _headerTextElement: HTMLDivElement;
private _headerCollapseElement: HTMLImageElement;
private _headerCloseElement: HTMLImageElement;
| <mask> private _height: number;
<mask> public element: HTMLDivElement;
<mask> private _headerElement: HTMLDivElement;
<mask> private _portContainer: HTMLDivElement;
<mask> private _outputPortContainer: HTMLDivElement;
<mask> private _inputPortContainer: HTMLDivElement;
... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/graphFrame.ts |
this._headerTextElement.innerHTML = value;
| <mask> }
<mask>
<mask> public set name(value: string) {
<mask> this._name = value;
<mask> this._headerElement.innerHTML = value;
<mask> }
<mask>
<mask> public get color() {
<mask> return this._color;
<mask> }
</s> Introduce frame icons (NME)
Former-commit-id: 4... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/graphFrame.ts |
this._headerTextElement.addEventListener("pointerdown", evt => this._onDown(evt));
this._headerTextElement.addEventListener("pointerup", evt => this._onUp(evt));
this._headerTextElement.addEventListener("pointermove", evt => this._onMove(evt));
| <mask>
<mask> this.cleanAccumulation();
<mask> }
<mask>
<mask> this._headerElement.addEventListener("pointerdown", evt => this._onDown(evt));
<mask> this._headerElement.addEventListener("pointerup", evt => this._onUp(evt));
<mask> this._headerElement.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/graphFrame.ts |
this._headerTextElement.setPointerCapture(evt.pointerId);
| <mask>
<mask> this._mouseStartPointX = evt.clientX;
<mask> this._mouseStartPointY = evt.clientY;
<mask>
<mask> this._headerElement.setPointerCapture(evt.pointerId);
<mask> this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
<mask>
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/graphFrame.ts |
this._headerTextElement.releasePointerCapture(evt.pointerId);
| <mask>
<mask> this.cleanAccumulation();
<mask> this._mouseStartPointX = null;
<mask> this._mouseStartPointY = null;
<mask> this._headerElement.releasePointerCapture(evt.pointerId);
<mask>
<mask> this._ownerCanvas._frameIsMoving = false;
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/graphFrame.ts |
this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiI... | <mask> this._element.style.background = BlockTools.GetColorFromConnectionNodeType(this.connectionPoint.type);
<mask> switch (this.connectionPoint.type) {
<mask> case NodeMaterialBlockConnectionPointTypes.Float:
<mask> case NodeMaterialBlockConnectionPointTypes.Int:
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/nodePort.ts |
this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhN... | <mask> case NodeMaterialBlockConnectionPointTypes.Int:
<mask> this._img .src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/nodePort.ts |
this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzL... | <mask> this._img .src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0z... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/nodePort.ts |
this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExL... | <mask> this._img .src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0z... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/nodePort.ts |
this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xM... | <mask> case NodeMaterialBlockConnectionPointTypes.Color4:
<mask> this._img .src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iT... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/575622728fb9b9e8aadf486b8776ebe3c0080cf0 | nodeEditor/src/diagram/nodePort.ts |
if (vrConfig.rotateUsingControllers) {
let rotationOffset: Quaternion | null;
this._vrHelper.onControllerMeshLoadedObservable.add((controller) => {
controller.onTriggerStateChangedObservable.add((data) => {
if (controller.mesh && controller.mesh.ro... | <mask> this._vrHelper.enableTeleportation({
<mask> floorMeshName
<mask> });
<mask> }
<mask> let rotationOffset: Quaternion | null;
<mask> this._vrHelper.onControllerMeshLoadedObservable.add((controller) => {
<mask> controller.onTriggerSt... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/managers/sceneManager.ts |
<mask> if (!rotationOffset) {
<mask> this.models[0].rootMesh.rotationQuaternion = this.models[0].rootMesh.rotationQuaternion || new Quaternion();
<mask> rotationOffset = controller.mesh.rotationQuaternion.conjugate().multiply(this.models... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/managers/sceneManager.ts | |
});
this.scene.registerBeforeRender(() => {
if (this.models[0]) {
if (rotationOffset && controller.mesh && controller.mesh.rotationQuaternion) {
this.models[0].rootMesh.rotationQuaternion!.copyFrom(controller.mes... | <mask> }
<mask> }
<mask>
<mask> }
<mask> });
<mask> });
<mask> }
</s> VR configuration extended
new Optional parameters:
Camera reposition, disable experimental rotation with controllers, and a new height compen... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/managers/sceneManager.ts |
}
});
});
}
| <mask> } else {
<mask> this.models[0].rootMesh.rotationQuaternion = null;
<mask> }
<mask>
<mask> }
<mask> })
<mask> })
<mask> this.onVRConfiguredObservable.notifyObservers({
<mask> sceneMana... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/managers/sceneManager.ts |
import { Effect, Observable, Engine, Scene, Database, SceneLoaderProgressEvent, ISceneLoaderPlugin, ISceneLoaderPluginAsync, Tools, RenderingManager, TargetCamera, WebVRFreeCamera, Vector3 } from 'babylonjs';
| <mask> import { viewerManager } from './viewerManager';
<mask> import { SceneManager } from '../managers/sceneManager';
<mask> import { ConfigurationLoader } from '../configuration/loader';
<mask> import { Effect, Observable, Engine, Scene, Database, SceneLoaderProgressEvent, ISceneLoaderPlugin, ISceneLoaderPluginA... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/viewer/viewer.ts |
if (this.configuration.vr && this.configuration.vr.cameraPosition !== undefined) {
this.sceneManager.vrHelper.currentVRCamera.position.copyFrom(this.configuration.vr.cameraPosition as Vector3);
} else {
this.sceneManager.vrHelper.currentVRCamera... | <mask> }
<mask>
<mask> // position the vr camera to be in front of the object
<mask> if (this.sceneManager.vrHelper.currentVRCamera) {
<mask> this.sceneManager.vrHelper.currentVRCamera.position.copyFromFloats(0, this.sceneManager.vrHelper.currentVRCamera.positio... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/viewer/viewer.ts |
if (this.configuration.vr && this.configuration.vr.modelHeightCorrection !== undefined) {
if (typeof this.configuration.vr.modelHeightCorrection === 'number') {
this._vrModelRepositioning = this.configuration.vr.modelHeightCorrection
} e... | <mask> // position the vr camera to be in front of the object
<mask> if (this.sceneManager.vrHelper.currentVRCamera) {
<mask> this.sceneManager.vrHelper.currentVRCamera.position.copyFromFloats(0, this.sceneManager.vrHelper.currentVRCamera.position.y, -1);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/57bd2271ebb1d505c2fbd6c15ed690c88e94cd84 | Viewer/src/viewer/viewer.ts |
if ((<any>ribbonInstance)._closePath) {
positions[i] = path[0].x;
positions[i + 1] = path[0].y;
positions[i + 2] = path[0].z
i += 3;
} | <mask> positions[i + 2] = path[j].z;
<mask> j++;
<mask> i += 3;
<mask> }
<mask> }
<mask> }
<mask> };
<mask> var ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/58d839094ff7cbf8366f96f2a4f16214063f37ab | src/Mesh/babylon.mesh.ts |
var positions = ribbonInstance.getVerticesData(VertexBuffer.PositionKind);
positionFunction(positions);
ribbonInstance.updateVerticesData(VertexBuffer.PositionKind, positions, false, false);
if ( !(ribbonInstance.areNormalsFrozen) ) {
v... | <mask> }
<mask> }
<mask> }
<mask> };
<mask> var computeNormals = !(ribbonInstance.areNormalsFrozen);
<mask> ribbonInstance.updateMeshPositions(positionFunction, computeNormals);
<mask>
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/58d839094ff7cbf8366f96f2a4f16214063f37ab | src/Mesh/babylon.mesh.ts |
if (closePath) {
(<any>ribbon)._idx = (<any>vertexData)._idx;
}
(<any>ribbon)._closePath = closePath; | <mask>
<mask> var vertexData = VertexData.CreateRibbon(pathArray, closeArray, closePath, offset, sideOrientation);
<mask>
<mask> vertexData.applyToMesh(ribbon, updatable);
<mask>
<mask> return ribbon;
</s> fix ribbon update according to new closePath parameter b... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/58d839094ff7cbf8366f96f2a4f16214063f37ab | src/Mesh/babylon.mesh.ts |
<SliderLineComponent label="Roughness" target={material.sheen} propertyName="roughness" minimum={0} maximum={1} step={0.01} onPropertyChangedObservable={this.props.onPropertyChangedObservable} />
| <mask> <SliderLineComponent label="Intensity" target={material.sheen} propertyName="intensity" minimum={0} maximum={1} step={0.01} onPropertyChangedObservable={this.props.onPropertyChangedObservable} />
<mask> <Color3LineComponent label="Color" target={material.... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | inspector/src/components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx |
public SHEEN_ROUGHNESS = false;
| <mask> public SHEEN = false;
<mask> public SHEEN_TEXTURE = false;
<mask> public SHEEN_TEXTUREDIRECTUV = 0;
<mask> public SHEEN_LINKWITHALBEDO = false;
<mask>
<mask> public SUBSURFACE = false;
<mask>
<mask> public SS_REFRACTION = false;
<mask> public SS_TRANSLUCENCY = false;
<mask... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrBaseMaterial.ts |
SHEEN_ROUGHNESS: boolean;
| <mask> SHEEN_TEXTURE: boolean;
<mask> SHEEN_TEXTUREDIRECTUV: number;
<mask> SHEEN_LINKWITHALBEDO: boolean;
<mask>
<mask> /** @hidden */
<mask> _areTexturesDirty: boolean;
<mask> }
<mask>
<mask> /**
</s> Add roughness to PBR sheen
Former-commit-id: 2c92f019c9bb06c4b71a3204f289074f5217a2... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
private _roughness = 0;
/**
* Defines the sheen roughness.
* It is not taken into account if linkSheenWithAlbedo is true.
* To stay backward compatible, material roughness is used instead if sheen roughness = 0
*/
@serialize()
@expandToProperty("_markAllSubMeshesAsTexturesDirt... | <mask> @expandToProperty("_markAllSubMeshesAsTexturesDirty")
<mask> public texture: Nullable<BaseTexture> = null;
<mask>
<mask> /** @hidden */
<mask> private _internalMarkAllSubMeshesAsTexturesDirty: () => void;
<mask>
<mask> /** @hidden */
</s> Add roughness to PBR sheen
Former-commit-i... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
defines.SHEEN_ROUGHNESS = this._roughness !== 0;
| <mask> defines.SHEEN = this._isEnabled;
<mask> defines.SHEEN_LINKWITHALBEDO = this._linkSheenWithAlbedo;
<mask>
<mask> if (defines._areTexturesDirty) {
<mask> if (scene.texturesEnabled) {
<mask> if (this._texture && MaterialFlags.SheenTextur... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
defines.SHEEN_ROUGHNESS = false;
| <mask> defines.SHEEN_TEXTURE = false;
<mask> defines.SHEEN_LINKWITHALBEDO = false;
<mask> }
<mask> }
<mask>
<mask> /**
<mask> * Binds the material data.
</s> Add roughness to PBR sheen
Former-commit-id: 2c92f019c9bb06c4b71a3204f289074f5217a207 </s> remove ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
if (this._roughness !== 0) {
uniformBuffer.updateFloat("vSheenRoughness", this._roughness);
}
| <mask> this.color.b,
<mask> this.intensity);
<mask> }
<mask>
<mask> // Textures
<mask> if (scene.texturesEnabled) {
<mask> if (this._texture && MaterialFlags.SheenTextureEnabled) {
</s> Add roughness to PBR sheen
Former-commit-id: 2c92f019c9... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
uniforms.push("vSheenColor", "vSheenRoughness", "vSheenInfos", "sheenMatrix");
| <mask> * Add the required uniforms to the current list.
<mask> * @param uniforms defines the current uniform list.
<mask> */
<mask> public static AddUniforms(uniforms: string[]): void {
<mask> uniforms.push("vSheenColor", "vSheenInfos", "sheenMatrix");
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
uniformBuffer.addUniform("vSheenRoughness", 1);
| <mask> */
<mask> public static PrepareUniformBuffer(uniformBuffer: UniformBuffer): void {
<mask> uniformBuffer.addUniform("vSheenColor", 4);
<mask> uniformBuffer.addUniform("vSheenInfos", 2);
<mask> uniformBuffer.addUniform("sheenMatrix", 16);
<mask> }
<mask>
<mask> /**... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Materials/PBR/pbrSheenConfiguration.ts |
#else
#ifdef HEMILIGHT{X}
preInfo.roughness = sheenRoughness;
#else
preInfo.roughness = adjustRoughnessFromLightProperties(sheenRoughness, light{X}.vLightSpecular.a, preInfo.lightDistance);
#... | <mask> #ifdef SHEEN
<mask> #ifdef SHEEN_LINKWITHALBEDO
<mask> // BE Carefull: Sheen intensity is replacing the roughness value.
<mask> preInfo.roughness = sheenIntensity;
<mask> #endif
<mask> info.sheen = computeSh... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Shaders/ShadersInclude/lightFragment.fx |
#ifdef SHEEN_ROUGHNESS
uniform float vSheenRoughness;
#endif
| <mask> // Sheen
<mask> #ifdef SHEEN
<mask> uniform vec4 vSheenColor;
<mask>
<mask> #ifdef SHEEN_TEXTURE
<mask> uniform vec2 vSheenInfos;
<mask> uniform mat4 sheenMatrix;
</s> Add roughness to PBR sheen
Former-commit-id: 2c92f019c9bb06c4b71a3204f289074f5217a207 </s> remove unif... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Shaders/ShadersInclude/pbrFragmentDeclaration.fx |
uniform float vSheenRoughness;
| <mask> uniform vec2 vAnisotropyInfos;
<mask> uniform mat4 anisotropyMatrix;
<mask>
<mask> uniform vec4 vSheenColor;
<mask> uniform vec2 vSheenInfos;
<mask> uniform mat4 sheenMatrix;
<mask>
<mask> uniform vec3 vRefractionMicrosurfaceInfos;
<mask> uniform vec4 vRefractionInfos;
<ma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Shaders/ShadersInclude/pbrUboDeclaration.fx |
// *** NOT USED ANYMORE ***
| <mask> vec3 baseColor = surfaceAlbedo;
<mask>
<mask> #ifdef REFLECTANCE
<mask> // Following Frostbite Remapping,
<mask> // https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf page 115
<mask> // vec3 f0 = 0.16 * reflectanc... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Shaders/pbr.fragment.fx |
#ifdef SHEEN_ROUGHNESS
float sheenRoughness = vSheenRoughness;
#else
float sheenRoughness = roughness;
#endif
| <mask> vec3 sheenColor = vSheenColor.rgb;
<mask> #ifdef SHEEN_TEXTURE
<mask> sheenColor.rgb *= toLinearSpace(sheenMapData.rgb);
<mask> #endif
<mask> float sheenRoughness = roughness;
<mask>
<mask> // Sheen Lobe Layering.
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Shaders/pbr.fragment.fx |
#ifdef SHEEN_ROUGHNESS
vec3 environmentSheenBrdf = getBRDFLookup(NdotV, sheenRoughness);
#else
vec3 environmentSheenBrdf = environmentBrdf;
#endif
vec3 sheenEnvironmentReflectance = getSheenReflectanceFromBRDFLookup(sheenColor, environmentSheenBrdf);
| <mask> #endif
<mask>
<mask> // _____________________________ Sheen Environment Oclusion __________________________
<mask> #if defined(SHEEN) && defined(REFLECTION)
<mask> vec3 sheenEnvironmentReflectance = getSheenReflectanceFromBRDFLookup(sheenColor, environmentBrdf);
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/595829bf6ade4600ec8a1194b1ee25b71e9cb921 | src/Shaders/pbr.fragment.fx |
let sideOrientation: Nullable<number>;
| <mask> this._scene.finalizeSceneUbo();
<mask> }
<mask>
<mask> if (material) {
<mask> var sideOrientation: Nullable<number>;
<mask> let instanceDataStorage = (renderingMesh as Mesh)._instanceDataStorage;
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/59834d718f860d6447abce13a1f76ac8f379d8f7 | src/Rendering/geometryBufferRenderer.ts |
if (!instanceDataStorage.isFrozen && (material.backFaceCulling || renderingMesh.overrideMaterialSideOrientation !== null)) {
| <mask> if (material) {
<mask> var sideOrientation: Nullable<number>;
<mask> let instanceDataStorage = (renderingMesh as Mesh)._instanceDataStorage;
<mask>
<mask> if (!instanceDataStorage.isFrozen && (material.backFaceCulling || material.o... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/59834d718f860d6447abce13a1f76ac8f379d8f7 | src/Rendering/geometryBufferRenderer.ts |
sideOrientation = renderingMesh.overrideMaterialSideOrientation;
if (sideOrientation === null) {
| <mask> let instanceDataStorage = (renderingMesh as Mesh)._instanceDataStorage;
<mask>
<mask> if (!instanceDataStorage.isFrozen && (material.backFaceCulling || material.overrideMaterialSideOrientation !== null)) {
<mask> let mainDeterminant = effective... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/59834d718f860d6447abce13a1f76ac8f379d8f7 | src/Rendering/geometryBufferRenderer.ts |
<mask> public set snapshotRenderingMode(mode: number) {
<mask> this._snapshotRenderingMode = mode;
<mask> }
<mask>
<mask> protected _useExactSrgbConversions = false;
<mask> /**
<mask> * Gets a boolean indicating if the exact sRGB conversions or faster approximations are used for con... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Engines/thinEngine.ts | |
public readonly useExactSrgbConversions: boolean;
| <mask> protected _useExactSrgbConversions = false;
<mask> /**
<mask> * Gets a boolean indicating if the exact sRGB conversions or faster approximations are used for converting to and from linear space.
<mask> */
<mask> public get useExactSrgbConversions(): boolean {
<mask> return thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Engines/thinEngine.ts |
this.useExactSrgbConversions = options.useExactSrgbConversions ?? false;
| <mask>
<mask> this._audioContext = options.audioEngineOptions?.audioContext ?? null;
<mask> this._audioDestination = options.audioEngineOptions?.audioDestination ?? null;
<mask> this.premultipliedAlpha = options.premultipliedAlpha ?? true;
<mask> this._useExactSrgbConversions = opt... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Engines/thinEngine.ts |
* @param scene The scene the environment helper belongs to.
| <mask>
<mask> /**
<mask> * Creates the default options for the helper.
<mask> */
<mask> private static _GetDefaultOptions(scene: Scene): IEnvironmentHelperOptions {
<mask> return {
<mask> createGround: true,
<mask> groundSize: 15,
</s> Add CPU side exact srgb ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Helpers/environmentHelper.ts |
private static _GetDefaultOptions(scene: Scene): IEnvironmentHelperOptions {
| <mask>
<mask> /**
<mask> * Creates the default options for the helper.
<mask> */
<mask> private static _GetDefaultOptions(): IEnvironmentHelperOptions {
<mask> return {
<mask> createGround: true,
<mask> groundSize: 15,
<mask> groundTexture: this._G... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Helpers/environmentHelper.ts |
groundColor: new Color3(0.2, 0.2, 0.3).toLinearSpace(scene.getEngine().useExactSrgbConversions).scale(3),
| <mask> return {
<mask> createGround: true,
<mask> groundSize: 15,
<mask> groundTexture: this._GroundTextureCDNUrl,
<mask> groundColor: new Color3(0.2, 0.2, 0.3).toLinearSpace().scale(3),
<mask> groundOpacity: 0.9,
<mask> enableGround... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Helpers/environmentHelper.ts |
skyboxColor: new Color3(0.2, 0.2, 0.3).toLinearSpace(scene.getEngine().useExactSrgbConversions).scale(3),
| <mask>
<mask> createSkybox: true,
<mask> skyboxSize: 20,
<mask> skyboxTexture: this._SkyboxTextureCDNUrl,
<mask> skyboxColor: new Color3(0.2, 0.2, 0.3).toLinearSpace().scale(3),
<mask>
<mask> backgroundYRotation: 0,
<mask> sizeAuto: true,... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Helpers/environmentHelper.ts |
...EnvironmentHelper._GetDefaultOptions(scene),
| <mask> * @param scene The scene to add the material to
<mask> */
<mask> constructor(options: Partial<IEnvironmentHelperOptions>, scene: Scene) {
<mask> this._options = {
<mask> ...EnvironmentHelper._GetDefaultOptions(),
<mask> ...options,
<mask> };
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Helpers/environmentHelper.ts |
const gammaGround = this._options.groundColor.toGammaSpace(this._scene.getEngine().useExactSrgbConversions);
| <mask> }
<mask> }
<mask> }
<mask>
<mask> const gammaGround = this._options.groundColor.toGammaSpace();
<mask> this._groundMirror.clearColor = new Color4(gammaGround.r, gammaGround.g, gammaGround.b, 1);
<mask> this._groundMirror.adaptiveBlurKernel = thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Helpers/environmentHelper.ts |
this._primaryColor.toLinearSpaceToRef(this._primaryColor, this.getScene().getEngine().useExactSrgbConversions);
| <mask>
<mask> this._primaryColor.copyFrom(this.__perceptualColor);
<mask>
<mask> // Revert gamma space.
<mask> this._primaryColor.toLinearSpaceToRef(this._primaryColor);
<mask>
<mask> // Revert image processing configuration.
<mask> if (this._imageProcessingConfigurati... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Background/backgroundMaterial.ts |
TmpColors.Color3[0].toGammaSpaceToRef(TmpColors.Color3[0], state.sharedData.scene.getEngine().useExactSrgbConversions);
| <mask> return `vec4(${this.value.x}, ${this.value.y}, ${this.value.z}, ${this.value.w})`;
<mask> case NodeMaterialBlockConnectionPointTypes.Color3:
<mask> TmpColors.Color3[0].set(this.value.r, this.value.g, this.value.b);
<mask> if (this.convertToGammaSpac... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color3[0].toLinearSpaceToRef(TmpColors.Color3[0], state.sharedData.scene.getEngine().useExactSrgbConversions);
| <mask> if (this.convertToGammaSpace) {
<mask> TmpColors.Color3[0].toGammaSpaceToRef(TmpColors.Color3[0]);
<mask> }
<mask> if (this.convertToLinearSpace) {
<mask> TmpColors.Color3[0].toLinearSpaceToRef(TmpColors.Color3[0]);
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color4[0].toGammaSpaceToRef(TmpColors.Color4[0], state.sharedData.scene.getEngine().useExactSrgbConversions);
| <mask> return `vec3(${TmpColors.Color3[0].r}, ${TmpColors.Color3[0].g}, ${TmpColors.Color3[0].b})`;
<mask> case NodeMaterialBlockConnectionPointTypes.Color4:
<mask> TmpColors.Color4[0].set(this.value.r, this.value.g, this.value.b, this.value.a);
<mask> if ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color4[0].toLinearSpaceToRef(TmpColors.Color4[0], state.sharedData.scene.getEngine().useExactSrgbConversions);
| <mask> if (this.convertToGammaSpace) {
<mask> TmpColors.Color4[0].toGammaSpaceToRef(TmpColors.Color4[0]);
<mask> }
<mask> if (this.convertToLinearSpace) {
<mask> TmpColors.Color4[0].toLinearSpaceToRef(TmpColors.Color4[0]);
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color3[0].toGammaSpaceToRef(TmpColors.Color3[0], scene.getEngine().useExactSrgbConversions);
| <mask> break;
<mask> case NodeMaterialBlockConnectionPointTypes.Color3:
<mask> TmpColors.Color3[0].set(this.value.r, this.value.g, this.value.b);
<mask> if (this.convertToGammaSpace) {
<mask> TmpColors.Color3[0].toGammaSpaceToRef(TmpCo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color3[0].toLinearSpaceToRef(TmpColors.Color3[0], scene.getEngine().useExactSrgbConversions);
| <mask> if (this.convertToGammaSpace) {
<mask> TmpColors.Color3[0].toGammaSpaceToRef(TmpColors.Color3[0]);
<mask> }
<mask> if (this.convertToLinearSpace) {
<mask> TmpColors.Color3[0].toLinearSpaceToRef(TmpColors.Color3[0]);
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color4[0].toGammaSpaceToRef(TmpColors.Color4[0], scene.getEngine().useExactSrgbConversions);
| <mask> break;
<mask> case NodeMaterialBlockConnectionPointTypes.Color4:
<mask> TmpColors.Color4[0].set(this.value.r, this.value.g, this.value.b, this.value.a);
<mask> if (this.convertToGammaSpace) {
<mask> TmpColors.Color4[0].toGammaSp... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
TmpColors.Color4[0].toLinearSpaceToRef(TmpColors.Color4[0], scene.getEngine().useExactSrgbConversions);
| <mask> if (this.convertToGammaSpace) {
<mask> TmpColors.Color4[0].toGammaSpaceToRef(TmpColors.Color4[0]);
<mask> }
<mask> if (this.convertToLinearSpace) {
<mask> TmpColors.Color4[0].toLinearSpaceToRef(TmpColors.Color4[0]);
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/Node/Blocks/Input/inputBlock.ts |
scene.fogColor.toLinearSpaceToRef(this._TempFogColor, scene.getEngine().useExactSrgbConversions);
| <mask> if (scene.fogEnabled && mesh.applyFog && scene.fogMode !== Scene.FOGMODE_NONE) {
<mask> effect.setFloat4("vFogInfos", scene.fogMode, scene.fogStart, scene.fogEnd, scene.fogDensity);
<mask> // Convert fog color to linear space if used in a linear space computed shader.
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Materials/materialHelper.ts |
<mask> const intB = Math.round(this.b * 255);
<mask> return "#" + Scalar.ToHex(intR) + Scalar.ToHex(intG) + Scalar.ToHex(intB);
<mask> }
<mask>
<mask> /**
<mask> * Computes a new Color3 converted from the current one to linear space
<mask> * @returns a new Color3 object
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts | |
/**
* Computes a new Color3 converted from the current one to linear space
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
* @returns a new Color3 object
*/
public toLinearSpace(exact = false): Color3 {
... | <mask> result.b = v;
<mask> }
<mask>
<mask> /**
<mask> * Converts the Color3 values to linear space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color3 object where to store the linear space version
<mask> * @param exact defines if the conve... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask> /**
<mask> * Converts the Color3 values to linear space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color3 object where to store the linear space version
<mask> * @returns the unmodified Color3
<mask> */
<mask> public toLinearSpaceToRef(c... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toLinearSpaceToRef(convertedColor: Color3, exact = false): Color3 {
if (exact) {
convertedColor.r = colorChannelToLinearSpaceExact(this.r);
convertedColor.g = colorChannelToLinearSpaceExact(this.g);
convertedColor.b = colorChannelToLinearSpaceExact(this.b);
... | <mask> * Converts the Color3 values to linear space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color3 object where to store the linear space version
<mask> * @returns the unmodified Color3
<mask> */
<mask> public toLinearSpaceToRef(convertedColor: C... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask> }
<mask>
<mask> /**
<mask> * Computes a new Color3 converted from the current one to gamma space
<mask> * @returns a new Color3 object
<mask> */
<mask> public toGammaSpace(exact = false): Color3 {
<mask> const convertedColor = new Color3();
<mask> this.toGamma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toGammaSpace(exact = false): Color3 {
| <mask> /**
<mask> * Computes a new Color3 converted from the current one to gamma space
<mask> * @returns a new Color3 object
<mask> */
<mask> public toGammaSpace(): Color3 {
<mask> const convertedColor = new Color3();
<mask> this.toGammaSpaceToRef(convertedColor);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
this.toGammaSpaceToRef(convertedColor, exact);
| <mask> * @returns a new Color3 object
<mask> */
<mask> public toGammaSpace(): Color3 {
<mask> const convertedColor = new Color3();
<mask> this.toGammaSpaceToRef(convertedColor);
<mask> return convertedColor;
<mask> }
<mask>
<mask> /**
<mask> * Converts the C... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask> /**
<mask> * Converts the Color3 values to gamma space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color3 object where to store the gamma space version
<mask> * @returns the unmodified Color3
<mask> */
<mask> public toGammaSpaceToRef(conv... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toGammaSpaceToRef(convertedColor: Color3, exact = false): Color3 {
if (exact) {
convertedColor.r = colorChannelToGammaSpaceExact(this.r);
convertedColor.g = colorChannelToGammaSpaceExact(this.g);
convertedColor.b = colorChannelToGammaSpaceExact(this.b);
... | <mask> * Converts the Color3 values to gamma space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color3 object where to store the gamma space version
<mask> * @returns the unmodified Color3
<mask> */
<mask> public toGammaSpaceToRef(convertedColor: Colo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask>
<mask> /**
<mask> * Computes a new Color4 converted from the current one to linear space
<mask> * @returns a new Color4 object
<mask> */
<mask> public toLinearSpace(exact = false): Color4 {
<mask> const convertedColor = new Color4();
</s> Add CPU side exact srgb conversion... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toLinearSpace(exact = false): Color4 {
| <mask> /**
<mask> * Computes a new Color4 converted from the current one to linear space
<mask> * @returns a new Color4 object
<mask> */
<mask> public toLinearSpace(): Color4 {
<mask> const convertedColor = new Color4();
<mask> this.toLinearSpaceToRef(convertedColor);
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
this.toLinearSpaceToRef(convertedColor, exact);
| <mask> * @returns a new Color4 object
<mask> */
<mask> public toLinearSpace(): Color4 {
<mask> const convertedColor = new Color4();
<mask> this.toLinearSpaceToRef(convertedColor);
<mask> return convertedColor;
<mask> }
<mask>
<mask> /**
<mask> * Converts the... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask> * Converts the Color4 values to linear space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color4 object where to store the linear space version
<mask> * @returns the unmodified Color4
<mask> */
<mask> public toLinearSpaceToRef(convertedColor: C... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toLinearSpaceToRef(convertedColor: Color4, exact = false): Color4 {
if (exact) {
convertedColor.r = colorChannelToLinearSpaceExact(this.r);
convertedColor.g = colorChannelToLinearSpaceExact(this.g);
convertedColor.b = colorChannelToLinearSpaceExact(this.b);
... | <mask> * Converts the Color4 values to linear space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color4 object where to store the linear space version
<mask> * @returns the unmodified Color4
<mask> */
<mask> public toLinearSpaceToRef(convertedColor: C... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask> }
<mask>
<mask> /**
<mask> * Computes a new Color4 converted from the current one to gamma space
<mask> * @returns a new Color4 object
<mask> */
<mask> public toGammaSpace(exact = false): Color4 {
<mask> const convertedColor = new Color4();
<mask> this.toGamma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toGammaSpace(exact = false): Color4 {
| <mask> /**
<mask> * Computes a new Color4 converted from the current one to gamma space
<mask> * @returns a new Color4 object
<mask> */
<mask> public toGammaSpace(): Color4 {
<mask> const convertedColor = new Color4();
<mask> this.toGammaSpaceToRef(convertedColor);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
this.toGammaSpaceToRef(convertedColor, exact);
| <mask> * @returns a new Color4 object
<mask> */
<mask> public toGammaSpace(): Color4 {
<mask> const convertedColor = new Color4();
<mask> this.toGammaSpaceToRef(convertedColor);
<mask> return convertedColor;
<mask> }
<mask>
<mask> /**
<mask> * Converts the C... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
* @param exact defines if the conversion will be done in an exact way which is slower but more accurate (default is false)
| <mask>
<mask> /**
<mask> * Converts the Color4 values to gamma space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color4 object where to store the gamma space version
<mask> * @returns the unmodified Color4
<mask> */
<mask> public toGammaSpaceT... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
public toGammaSpaceToRef(convertedColor: Color4, exact = false): Color4 {
if (exact) {
convertedColor.r = colorChannelToGammaSpaceExact(this.r);
convertedColor.g = colorChannelToGammaSpaceExact(this.g);
convertedColor.b = colorChannelToGammaSpaceExact(this.b);
... | <mask> * Converts the Color4 values to gamma space and stores the result in "convertedColor"
<mask> * @param convertedColor defines the Color4 object where to store the gamma space version
<mask> * @returns the unmodified Color4
<mask> */
<mask> public toGammaSpaceToRef(convertedColor: Colo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/core/src/Maths/math.color.ts |
onClick={() =>
(renderPipeline.scene.clearColor = renderPipeline.scene.clearColor.toLinearSpace(renderPipeline.scene.getEngine().useExactSrgbConversions))
}
| <mask> {renderPipeline.imageProcessing && (
<mask> <div>
<mask> <ButtonLineComponent
<mask> label="Convert clear color to linear"
<mask> onClick={() => (renderPipeline.scene.clear... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx |
onClick={() =>
(renderPipeline.scene.clearColor = renderPipeline.scene.clearColor.toGammaSpace(renderPipeline.scene.getEngine().useExactSrgbConversions))
}
| <mask> onClick={() => (renderPipeline.scene.clearColor = renderPipeline.scene.clearColor.toLinearSpace())}
<mask> />
<mask> <ButtonLineComponent
<mask> label="Convert clear color to gamma"
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx |
this._scene.clearColor.toLinearSpaceToRef(opaqueRenderTarget.clearColor, this._scene.getEngine().useExactSrgbConversions);
| <mask> saveSceneEnvIntensity = this._scene.environmentIntensity;
<mask> this._scene.environmentIntensity = 1.0;
<mask> sceneImageProcessingapplyByPostProcess = this._scene.imageProcessingConfiguration.applyByPostProcess;
<mask> if (!this._options.clearColor) {
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/loaders/src/glTF/2.0/Extensions/KHR_materials_transmission.ts |
const useExactSrgbConversions = babylonMaterial.getScene().getEngine().useExactSrgbConversions;
| <mask> }
<mask>
<mask> const promise = this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial);
<mask>
<mask> if (!babylonMaterial.albedoTexture) {
<mask> babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albed... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/loaders/src/glTF/2.0/Extensions/MSFT_sRGBFactors.ts |
babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albedoColor, useExactSrgbConversions);
| <mask>
<mask> const promise = this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial);
<mask>
<mask> if (!babylonMaterial.albedoTexture) {
<mask> babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albedoColor);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/loaders/src/glTF/2.0/Extensions/MSFT_sRGBFactors.ts |
babylonMaterial.reflectivityColor.toLinearSpaceToRef(babylonMaterial.reflectivityColor, useExactSrgbConversions);
| <mask> babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albedoColor);
<mask> }
<mask>
<mask> if (!babylonMaterial.reflectivityTexture) {
<mask> babylonMaterial.reflectivityColor.toLinearSpaceToRef(babylonMaterial.reflectivityCol... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/loaders/src/glTF/2.0/Extensions/MSFT_sRGBFactors.ts |
const useExactSrgbConversions = this._babylonScene.getEngine().useExactSrgbConversions;
| <mask> const convertToLinear = meshMaterial ? meshMaterial.getClassName() === "StandardMaterial" : true;
<mask> const vertexData: Color3 | Color4 = stride === 3 ? new Color3() : new Color4();
<mask> for (let k = 0, length = meshAttributeArray.length / stride; k < lengt... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFExporter.ts |
(vertexData as Color3).toLinearSpaceToRef(vertexData as Color3, useExactSrgbConversions);
| <mask> index = k * stride;
<mask> if (stride === 3) {
<mask> Color3.FromArrayToRef(meshAttributeArray, index, vertexData as Color3);
<mask> if (convertToLinear) {
<mask> (vertexData as Color3).toLine... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFExporter.ts |
(vertexData as Color4).toLinearSpaceToRef(vertexData as Color4, useExactSrgbConversions);
| <mask> }
<mask> } else {
<mask> Color4.FromArrayToRef(meshAttributeArray, index, vertexData as Color4);
<mask> if (convertToLinear) {
<mask> (vertexData as Color4).toLinearSpaceToRef(vertexData a... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFExporter.ts |
const diffuse = babylonStandardMaterial.diffuseColor.toLinearSpace(babylonStandardMaterial.getScene().getEngine().useExactSrgbConversions).scale(0.5);
| <mask> const t = Math.pow(specularPower / P3.x, 0.333333);
<mask> return cubicBezierCurve(t, P0.y, P1.y, P2.y, P3.y);
<mask> }
<mask>
<mask> const diffuse = babylonStandardMaterial.diffuseColor.toLinearSpace().scale(0.5);
<mask> const opacity = babylonStandardMater... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFMaterialExporter.ts |
const diffuseColor = new Color3(diffuseBuffer[offset], diffuseBuffer[offset + 1], diffuseBuffer[offset + 2])
.toLinearSpace(scene.getEngine().useExactSrgbConversions)
.multiply(factors.diffuseColor);
| <mask> for (let h = 0; h < height; ++h) {
<mask> for (let w = 0; w < width; ++w) {
<mask> const offset = (width * h + w) * strideSize;
<mask>
<mask> const diffuseColor = new Color3(diffuseBuffer[offset], diffuseBuffer[offset + 1], diffuseBuffer[o... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFMaterialExporter.ts |
.toLinearSpace(scene.getEngine().useExactSrgbConversions)
| <mask> const offset = (width * h + w) * strideSize;
<mask>
<mask> const diffuseColor = new Color3(diffuseBuffer[offset], diffuseBuffer[offset + 1], diffuseBuffer[offset + 2]).toLinearSpace().multiply(factors.diffuseColor);
<mask> const specularColor = new... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFMaterialExporter.ts |
const sRGBBaseColorPixel = linearBaseColorPixel.toGammaSpace(scene.getEngine().useExactSrgbConversions);
| <mask> baseColorBuffer[destinationOffset],
<mask> baseColorBuffer[destinationOffset + 1],
<mask> baseColorBuffer[destinationOffset + 2]
<mask> );
<mask> const sRGBBaseColorPixel = linearBaseColorPixel.to... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5a2caa890c5f75c552cd040da7a4547ea47fe452 | packages/dev/serializers/src/glTF/2.0/glTFMaterialExporter.ts |
<mask> public get shaderPlatformName(): string {
<mask> return this._shaderPlatformName;
<mask> }
<mask>
<mask> protected _snapshotRenderingEnabled = false;
<mask> /**
<mask> * Enables or disables the snapshot rendering mode
<mask> * Note that the WebGL engine does not support... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/5b0010301c9c3e76ba87ed2dea8a3fb296dbfdd1 | src/Engines/thinEngine.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.