Skip to content

Commit

Permalink
clean-up of shader text editor in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
KTRosenberg committed Jan 23, 2020
1 parent 1a5a0d9 commit f47f658
Show file tree
Hide file tree
Showing 22 changed files with 218 additions and 356 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#version 300 es
precision highp float;
#include<pnoise>

in vec3 vPos;
in vec3 vWorldPos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#version 300 es
precision highp float;

// debug line shader

// input vertex
layout(location = 0) in vec3 aPos;
layout(location = 1) in vec4 aColor;
Expand Down
2 changes: 1 addition & 1 deletion lib/core/metaroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MetaroomVRBackend} from "./webvr_backend.js";

import {ServerPublishSubscribe} from "./event_pubsub.js";
import {ViewpointController} from "./viewpoint_controller.js";
import {Client} from "./object_sync_client.js";
import {Client} from "./websocket_client.js";
import {EventBus} from "./eventbus.js";

// the "base" type
Expand Down
151 changes: 0 additions & 151 deletions lib/core/object_sync_client.js

This file was deleted.

13 changes: 2 additions & 11 deletions lib/core/profile.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
"use strict";

import {ShaderTextEditor} from "/lib/core/shader_text_editor.js";

export default class Profile {
constructor(){
constructor() {
this.RESOLUTION = document.getElementById("resolution").getAttribute("value").split(',');
}

main(){
ShaderTextEditor.enable();

ShaderTextEditor.init({
defaultShaderCompilationFunction : ShaderTextEditor.onNeedsCompilationDefault,
//externalWindowGetter : function() { return MR.engine.externalWindow; }
});

main() {
MR.initWorldsScroll();
MR.initPlayerViewSelectionScroll();
MR.syncClient.connect(window.IP, window.PORT_SYNC);
Expand Down
Loading

0 comments on commit f47f658

Please sign in to comment.