Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alg
Knowledge Space WP Plugin
Commits
2c0214d5
Commit
2c0214d5
authored
3 years ago
by
Matthias Konitzny
Browse files
Options
Downloads
Patches
Plain Diff
Added a new background without a seam.
parent
50e04d79
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
background_2.jpg
+0
-0
0 additions, 0 deletions
background_2.jpg
graph.js
+1
-1
1 addition, 1 deletion
graph.js
with
1 addition
and
1 deletion
background_2.jpg
0 → 100644
+
0
−
0
View file @
2c0214d5
350 KiB
This diff is collapsed.
Click to expand it.
graph.js
+
1
−
1
View file @
2c0214d5
...
...
@@ -33,7 +33,7 @@ function add_background() {
//const planeGeometry = new THREE.PlaneGeometry(1000, 1000, 1, 1);
const
loader
=
new
THREE
.
TextureLoader
();
//const planeMaterial = new THREE.MeshLambertMaterial({color: 0xFF0000, side: THREE.DoubleSide}); //THREE.BackSide
const
planeMaterial
=
new
THREE
.
MeshBasicMaterial
({
map
:
loader
.
load
(
plugin_path
+
'
background.jpg
'
),
side
:
THREE
.
DoubleSide
});
//THREE.BackSide
const
planeMaterial
=
new
THREE
.
MeshBasicMaterial
({
map
:
loader
.
load
(
plugin_path
+
'
background
_2
.jpg
'
),
side
:
THREE
.
DoubleSide
});
//THREE.BackSide
const
mesh
=
new
THREE
.
Mesh
(
sphereGeometry
,
planeMaterial
);
mesh
.
position
.
set
(
0
,
0
,
0
);
//mesh.rotation.set(0.5 * Math.PI, 0, 0);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment