Skip to content

Instantly share code, notes, and snippets.

View NSTCG's full-sized avatar

NITHIN STEVEN F NSTCG

  • Wonderland Engine
  • Palakkad
View GitHub Profile
@NSTCG
NSTCG / FlatStereo.frag
Last active October 7, 2024 10:06
A fragment shader for stereo image/video rendering in wonderland engine
/**
Copyright © 2024 Nithin Steven F <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
@NSTCG
NSTCG / scroll-fov.js
Last active September 12, 2023 14:45
a component to change fov ( for pc ) on runtime with scroll
import {Component, Property, ViewComponent} from "@wonderlandengine/api";
/**
* scroll-fov
*/
export class ScrollFov extends Component {
static TypeName = "scroll-fov";
/* Properties that are configurable in the editor */
static Properties = {
sensitivity: Property.float(0.01),